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
I have the project that takes screen shots and saves in the specific folder.(eg.Screen0001) but the problem is that if i close application and run it again then it replace the exis

Develop PC Cleaner Software Project Description: We are seeking experienced developer who can develop Registry Cleaner / PC Cleaner software for us. Software should be like c

What is an XMLReader Class? This is an abstract class available from the System.XML namespace. The XML reader works on a read-only stream browsing from one node to another in a

Prepare an Application in C# or C++ Project Description: We are seeking someone who can write a program in C# or C++. The concept is to develop the program using a Cross P

1. What are the limitations of file based data storing techniques?

What is DBMS? It is a collection of programs that enables user to make and maintain a database. In other words it is general-purpose software that gives the users with the proc

Compute Average of 3 numbers - C# Program I didn't know the exact code for computing average of integer number. Can anybody suggest me the correct way for find out the average

How does output caching work in ASP.NET?    Output caching is a powerful method that enhances request/response throughput by caching the content generated from dynamic pages. O

What is DTD? The Document Type definition (DTD) defines how your XML should structure. For illustrate in the above XML we want to make it compulsory to provide "qty" and "total