2
Answers

is it possible to create a virtual xml file

Anuj Singh

Anuj Singh

15y
5.5k
1

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

 

Answers (2)