Hi Everyone,
I am using the following code to write out an XmlDocument that I have.
I create an XmlTextWriter and try to save / flush it. Earlier, I had
created an XmlElement (using xmlDoc.createElemenet("name') )
However, the xml file size is always 0. WHat could I be missing?
private void writeXMLFile()
{
XmlTextWriter x = new XmlTextWriter(XmlFileName, null);
xmlDoc.Save(x);
x.Flush();
x.Close();
return;
}
Thanks.