RE: Load a xml file on disc into two diffrent XmlDocuments
- From: v-phuang@xxxxxxxxxxxxxxxxxxxx ("Peter Huang" [MSFT])
- Date: Fri, 07 Oct 2005 02:57:06 GMT
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.
.
- Prev by Date: Re: datasets & xmlhttp?
- Next by Date: DirectCast/CType speed VS Direct call speed?
- Previous by thread: Looking For Code Sample and Request Feedback
- Next by thread: DirectCast/CType speed VS Direct call speed?
- Index(es):
Relevant Pages
|