New Line XML

I’m trying to make a line break in a text loaded from xml, using \n

But it does not work.

XML doesn’t recognize “\n” as a special character sequence; it just treats it as two mundane characters like any others.

Once you have your string loaded, you could always use [str = str.Replace("\\n", "\n");](https://msdn.microsoft.com/en-us/library/fk49wtc1(v=vs.110).aspx) to manually replace all instances of backslash-n with a newline within the string.

2 Likes

Thank you very much