xml >> how to find nodes at xml file without complete load the xml file

by am9l » Fri, 31 Mar 2006 09:29:01 GMT

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

xml >> how to find nodes at xml file without complete load the xml file

by Martin Honnen » Fri, 31 Mar 2006 19:03:40 GMT



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/

Similar Threads

1. XML.NET - Inserting single element node into primary XML file

I have thousand of records that i store in xml file.
During application start up, I load the xml file into a Dataset.

I perform update/deletion/ addition to the dataset.

Periodically I need to write into the xml file. But every time I use 
Dataset.WriteXml(filename)  method to update the primary xml file
which writes whole dataset record instead of changed record.

This degrades the performance.

Can anyone suggest me as how we can insert only changed record into the 
xml file. I tried using diffgram mode. But I could not succeed.

Help is greatly appreciated!!!!
Thanks
Hitesh

2. add xml version line before xml file root node - VB.Net

3. Reading data node by node from an XML file and binding to a grid

Hi all, 

I have many parent tags and many child tags under the respective
parent.. in an XML file.

On the click of a button the application should pick up the one parent
and the corresponding child and bind it to a grid.

Like that it goes on for the next parent and the related child for the
next button click.


Pls give me an idea of how to do this. If possible do help me with the
code.

Thanks in advance, 
Dinesh.

4. Saving/Loading Xml to/from an Xml file

5. How to make reference from a xml file to another xml file

In a xml file, can we make reference to another xml file so that all contents 
of the latter xml file will be included into the first xml file? 

Had better give me an example for details.

6. how to create xml files out of an xml file based on an element - CSharp/C#

7. compare XML serialized file and a normal XML file

8. How to Split a XML file to multiple small XML Files - VB.Net