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 Object Oriented Programming? This is a problem solving process to develop software systems. This is a technique to think real world in terms of objects. The Object maps

Printing Triangles - C# Program I need program code for Printing Triangles in C#. Can anybody send me there ideas?

Question: (a) The ObjectDataSource control is an alternative design approach to using AccessDataSource or SqlDataSource controls. Explain and illustrate how an ObjectDataSourc

What is managed code and managed data? Managed code is code that is written to target the services of the Common Language Runtime. In order to target these services, the code m

How do I force the Dispose method to be called automatically, as clients can forget to call Dispose method? To Call the Dispose method in the Finalize method and in the Dispose

What does Address Of operator do? The Address Of operator generates a delegate object for the BackgroundProcess method. A delegate within VB.NET is a object-oriented, type-safe

Finding Maximum & Minimum Numbers - C# Program I am facing some problems in the code for Finding Maximum & Minimum Numbers. Can anybody suggest me the proper code for it.

What are the benefits of using of ADO.NET in .NET 4.0. The following are the benefits of using ADO.NET in .NET 4.0 are as follows: Language-Integrated Query (LINQ) - Adds

How will you do code reviews? The way in which the code reviews are done change from person to person and also from company to company. But generally when a project is started