I am using DataSet.ReadXML and DataSet.WriteXML to read and update an XML file. In some places I have a text column that may contain carriage return, linefeed (
)
When I put
in the input file, ReadXML works fine and I get \r\l in the column's value. However when I update with DataSet.WriteXML, the output file appears with a line break wherever I would like there to be
Is there a way to tell the WriteXML to encode special characters that appear in values?
I have looked at XmlWriter, but don't see anything relevant.