Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...