I have an xml document from which i want to remove white spaces and cartridge returns. how can i get the modified xml using c#
+3
A:
Set the preserveWhitespace flag to false:
XmlDocument doc = new XmlDocument();
doc.preserveWhitespace = false;
doc.load("foo.xml");
// doc.InnerXml contains no spaces or returns
Coded Signal
2009-08-05 05:51:48