Re: how to find nodes at xml file without complete load the xml file

Tech-Archive recommends: Fix windows errors by optimizing your registry





joe wrote:

how to find nodes at xml file without complete load the xml file
since the file is very big!!

You can read through the XML document with an Xml(Text)Reader, that is forward only pull parsing where your code only pulls in the current node.
The documentation is here
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemXmlXmlTextReaderClassTopic.asp>
for .NET 1.x and here
<http://msdn2.microsoft.com/en-us/library/system.xml.xmlreader(VS.80).aspx>
for .NET 2.0.
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
.