What scenarios are required to use dom parser and sax parser, DOT NET Programming

In What scenarios you use a DOM parser and SAX parser?

1) If you do not require all the data from the XML file then SAX approach is most preferred than DOM as DOM can quiet memory intensive. In brief if you require large portion of the XML document it's better to have DOM.

2) With the SAX parser you have to write more code than DOM.

3) If you want to write the XML into a file then DOM is the efficient way to do it.

4) Some time you only require validating the XML structure and do not want to retrieve any Data for those instances SAX is the right approach.

Posted Date: 9/25/2012 2:51:06 AM | Location : United States







Related Discussions:- What scenarios are required to use dom parser and sax parser, Assignment Help, Ask Question on What scenarios are required to use dom parser and sax parser, Get Answer, Expert's Help, What scenarios are required to use dom parser and sax parser Discussions

Write discussion on What scenarios are required to use dom parser and sax parser
Your posts are moderated
Related Questions
What is the meaning of object pooling? Object pooling is a method of storing a pool (group) of objects in memory that can be reused later as needed. Whenever, a new object is n

Print Pyramids of Numbers - C# Program Hello can you please provide me some examples regarding to the Print Pyramids of Numbers in C#.

Project Description: I need to unlock software or make a similar kind of software. It is presently installed in my PC and I will provide you installation files if needed. It wil

Explain the elements of a collaboration diagram. Classifier Role: - It only classifies a role. Association Role: - It shows the relation b/w two classifier roles.

What is the sequence of UML diagrams in project? At First let me say some fact about this question, you cannot implement all the nine diagrams given by the UML in one project;

What are the methods provided by the command object? The command objects used to connect the connection object to the Datareader or the dataset. The command object provided som

create a table using class file

Small website using ASP.NET MVC 4 EntityFramework 5 Project Description: We are seeking a developer to a ASP.NET MVC4 EntityFramework website using the subsequent tools: Visu

Project Description: My needs are simple; the application will: - Get the results of a Google search query (The title, URL, the description, time posted) - Apply definite

Finding the frequencies - C# Program: Please let me know how to find Frequencies in C#.