#6 Keep newline (\n) in attribute on serialization

v1.0 (example)
open
nobody
None
5
2014-04-16
2014-04-16
McLoo
No

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

Discussion

  • McLoo
    McLoo
    2014-04-16

    Correction:
    The \n character is still there but it should be instead. How can i achieve this?