How do I include line breaks when using an XElement?



I have a web service that accepts XML data. Included in the data is an [address] tag (should be angle brackets, but SO eats those, so replaced with square), whose data could contain a new line.


How do I include the new line? I tried using the HTML line break tag [br /], but this was removed when accessing the XElement's Value property, leaving me with the address on a single line. I also tried using real lines breaks, but that caused problems parsing the XML.


Anyone any suggestions?


No comments:

Post a Comment