I am generating XML through XmlTextWriter.
The file looks good to my eyes, checks ( in wc3 ) and was accepted by the client.
But the client provider complains that the line ends are CRLF, not just CR.
Ok, I'm on a Win32 machine using C #, and CRLF is the end of a Win32 line. Is there a way to change the end of lines in an XmlTextWriter?
Also - shouldn't the lines end regardless of the correct XML parser?
see also: What are carriage returns, line feeds, and feeds?
NOTE: it seems that the only answer is a lateral solution - you need to use XmlWriter instead of XmlTextWriter
c # xml newline xmltextwriter
Michael Paulukonis
source share