BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


Add/Edit your code items
Search the code library
Browse for the code library


.NET and XML
What is EXSLT.NET?
What is ADO.NET?
How to create a ""hello world"" XML WebService in Visual Studio .NET?
Accessing and Manipulating XML Data in Microsoft .NET Framework
Developing Multi-Threaded .NET Applications


 
 

<< XSLT 


By Sonu Kapoor
First Posted 02/20/2005
Times viewed 178

What is the 'pull model'?


Summary What is the 'pull model'?

A pull model is a cursor which pulls the data FROM the XML file and reads it node for node at a time. It has the full control over the node. The XmlReader class is such a class which provides that kind of model. It is a read-only, non-cached, forward-only cursor to access data in a XML file. In comparison: The (XmlDocument) DOM model is parser which provides read/write access to the XML file. The difference is that the XmlReader consumes less memory than the XmlDocument, because it reads node for node. The XmlDocument class reads the complete file into the memory and provides more flexibility. That means you can move around like you wish in the XML file. You can also add, edit or delete nodes. This all is not possible with the pull model. The pull model is always used if you just require to need the nodes fast and quickly. Both can be also combined: If you need to modify a large file, you could read it with the XmlNodeReader and pass the reader to the XmlDocument which will let you modify it.  


Rate this article on a scale of 1 to 10 (0 votes, average 0)

Your vote :  

<< XSLT 





Leave a comment for this article
Your name
Your email (optional)
Your comment
Optional: Upload an attachment
Enter the code shown:

 
 

    Email TopXML