line break - xml

pelican

Newcomer
Joined
Feb 22, 2005
Eg. "This is Line 1.\r\nThis is Line 2"
Before exporting, c# will print out correctly,

This is Line 1.
This is Line 2

After the string, "This is Line 1.\r\nThis is Line 2" being export into xml.
and import back, output or print the string.... it is literally the string
"This is Line 1.\r\nThis is Line 2"

is there anyway to preserve the line break after xml export/import.
using replace \r\n with line break after xml export/import is not really a good idea.
because sometimes the real text might have \r\n that dont mean to be line break.

Please advise.
 
Top Bottom