What is the difference between SAX Parser and DOM Parser?

Answers were Sorted based on User's Feedback



What is the difference between SAX Parser and DOM Parser?..

Answer / apekshit sharma

Hi this is APEKSHIT...
SAX Parser is the one which is developed to run the java
programs especially. It uses a memory resident model. In DOM
the xml file is arranged as a tree and backward and forward
search is possible for searching the tags and evaluating the
data which it holds. It depends upon the application and
ease of data accessiblity. If we want to extract the data
from a xml file once we have to move to SAX which is one
time top to bottom read approach and if we want ot randomly
pick the data in an xml file then the tree reperesentation
of DOM model is to be put into use.

Is This Answer Correct ?    15 Yes 4 No

What is the difference between SAX Parser and DOM Parser?..

Answer / keerthika

SAX parser is event based API and DOM parse is tree-based API

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Dot Net AllOther Interview Questions

what is the shortcut key for toolbox and add existing item?

1 Answers   Six Sigma,


What other than biginteger has been introduced in system.numerics namespace?

0 Answers  


what is the difference between value types and reference types?

4 Answers   Six Sigma,


Explain about common language infrastructure?

0 Answers  


What is a Windows Service and how does its lifecycle differ from a "standard" EXE?

2 Answers   Siebel Systems,






What is ITIL? What is the use of ITIL and how it works?

7 Answers   Genpact, IBM,


how to change the application name?

0 Answers   Six Sigma,


Does application frame need host?

0 Answers  


How does an appdomain get created?

0 Answers  


Which Binding best suits where a WCF Service and the client application resides in the same machine?

2 Answers   Cap Gemini,


Explain about validation?

0 Answers  


What are public and private assemblies ?

0 Answers  


Categories