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"
myAttribute = "Contains