I have a class with a property marked with [XmlText], that accepts multiline input. In my XML file, I\'ve verified that the line endings inside the text content
If you were serializing, then XmlWriterSettings.NewLineHandling (Replace) would be worth trying - but this won't help reading. A bit grungy, but perhaps do this directly in the setter:
private string text;
[XmlText]
public string Text {
get { return text; }
set
{
Regex r = new Regex("(?