I have to read/parse a .txt document and convert it to XML file. I used following statement
XmlTextWriter textWriter = new XmlTextWriter("C:\\newXMLFile.xml", null);
above statement is creating a physical copy of newXMLFile.xml on C drive. But I dont want it to be created physicaly on disk. Because this XML file will be a temporary file for my application.And according to my requirement it should not be created on disk at all.
Is it possible to create a temproary or virtual XML file. and if user wants to store this XML then it should save it physicaly on disk.
its urgent...thanks
Mahesh ChandPosted Mar 25, 2009, 7:49 PM
You can use XmlDocument or XmlNode to create a XML document in-memory. Use XmlTextReader to read the text in XML format.
Amit TiwariPosted Mar 25, 2009, 6:56 PM