RE: Load a xml file on disc into two diffrent XmlDocuments



Hi

Based on my test, two xmldocuments can work with one xml file.
Here is my test code.
XmlDocument doc = new XmlDocument();
doc.Load("c:\\test.xml");
Console.WriteLine(doc.FirstChild["computername"].InnerText);
XmlDocument doc1 = new XmlDocument();
doc1.Load("c:\\test.xml");
Console.WriteLine(doc1.FirstChild["computername"].InnerText);

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages