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

how do u achieve multilevel inheritance in .NET ?

9 Answers   Accenture, Ness Technologies, SteelWedge,


how to change the application name?

0 Answers   Six Sigma,


What is .net transaction?

0 Answers  


Explain how cache is used? : Dot net architecture

0 Answers  


Explain about continuable exceptions?

0 Answers  


What is the problem with .net generics?

0 Answers  


What is the cli? Is it the same as the clr?

0 Answers  


What happens when you try to update data in a dataset in .net while the record is already deleted in sql server as backend?

0 Answers  


difference between page init an page load

1 Answers   PCS,


What is the main Difference Between .Net 2003 and .Net 2005.and also Asp1.1,Asp2.0 and Asp3.0

4 Answers   Satyam, TCS,


Use of Enable view state ? if turn off what happen ?

1 Answers  


what is an assembly ?

2 Answers   IBM,


Categories