Hello all,
I am opening an XML file that contains line breaks. IWhen writing XML to a file I would like to preserve CR+LF as line break, without writing 
 to the file.
I am reading the contents into the momory by using XmlDocument and Method Load(). When saving the file I use the XmlTextWriter and XmlDocument method doc.Save([XmlTextWriter]).
Is it possible to avoid writing 
 e.g. instead of saving
...
<node attribute="test1 
 test2">
...
to save this
...
<node attribute="test1
test2">
...
Thanks
Start Free Trial