IS there a way to marshall/unmarshall xml/object multiline attributes .
Currently it is showing as
<task name="Payament Gateway
Checker" >
It would be best , if store it by replacing nextline whitespace with \n ?
<task name="Payament Gateway \n Checker" >
Edit -
Tried Both Adapter and JaxbListener - but converted to name="Payament Gateway 
 Checker"
void beforeMarshal(Marshaller marshaller) {
name = name.replaceAll("\n", "
");
}
@XmlJavaTypeAdapter(MultilineString.class)
@XmlAttribute
protected String name;
public class MultilineString extends XmlAdapter<String, String> {
@Override
public String marshal(String input) throws Exception {
return input.replaceAll("\n", "
");
}
@Override
public String unmarshal(String output) throws Exception {
return output;
}
}