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

Amit TiwariRank #9,518 · 205 reputationPosted Mar 25, 2009, 2:56 PM EDT
Mahesh ChandRank #1 · 393.3K reputationPosted Mar 25, 2009, 3:49 PM EDT
You can use XmlDocument or XmlNode to create a XML document in-memory. Use XmlTextReader to read the text in XML format.