Accessing an open xmldocumet

  • Thread starter Thread starter Ron
  • Start date Start date
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
 
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
 
Back
Top