Keep newline (\n) in attribute on serialization
Brought to you by:
niallg
Hi Niall,
is there a way to preserve the \n character on serialization?
Didn't find a way to do this.
If the string in java is definded like this:
myAttribute = "Contains\nnewline char"
The XML attribute looks like myAttribute = "Contains newline char"
Expected was:
myAttribute = "Contains
newline char"
Regards
McLoo
Correction:
The \n character is still there but it should be instead. How can i achieve this?