Accessing an open xmldocumet

R

Ron

If I open an XmlDocument and store it in an application variable like so:

----------------------------------------------
XmlDocument xDoc = new XmlDocument();
xDoc.Load("myfilepath.xml);

Application["doc"] = xDoc;
------------------------------------------------

will file file be unable to be opened on the serves hard disk. essential
locked until the Appication["doc"] is garbage collected?


Thanks

Ron
 
R

Ron

Thanks Carlos for you reply
Carlos Campos said:
No, it will be free.

Ron said:
If I open an XmlDocument and store it in an application variable like so:

----------------------------------------------
XmlDocument xDoc = new XmlDocument();
xDoc.Load("myfilepath.xml);

Application["doc"] = xDoc;
------------------------------------------------

will file file be unable to be opened on the serves hard disk. essential
locked until the Appication["doc"] is garbage collected?


Thanks

Ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,274
Latest member
JessMcMast

Latest Threads

Top