Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is the diff. between DOM and SAX ?

Answers were Sorted based on User's Feedback



what is the diff. between DOM and SAX ?..

Answer / harish

The DOM is a tree based mechanism that allows u to load or
create an XML document,gather errors if any: access and
manipulate the information and structures contained within
the document and save the document back out to an XML file
if necessary. Construcing the DOM requires reading the
entire XML structure and holding the object tree in
memory,so it is much more CPU and memory intensive.
the SAX is an event-driven ,serial-access mechanism for
accesing XML documents. SAX is the fastest and least memory
intensive mechanism that is currently available for dealing
with XML documents.

Is This Answer Correct ?    10 Yes 1 No

what is the diff. between DOM and SAX ?..

Answer / csawant

Dom: (Tree-based)
This maps an XML document into an internal tree structure,
then allow an application to navigate that tree.

Tree-based APIs are useful for a wide range of
applications, but they normally put a great strain on
system resources, especially if the document is large.
Furthermore, many applications need to build their own
strongly typed data structures rather than using a generic
tree corresponding to an XML document. It is inefficient to
build a tree of parse nodes, only to map it onto a new data
structure and then discard the original.

SAX:(Event-based), SAX on the other hand, reports parsing
events (such as the start and end of elements) directly to
the application through callbacks, and does not usually
build an internal tree. The application implements handlers
to deal with the different events, much like handling
events in a graphical user interface.

In both of those cases, an event-based API provides a
simpler, lower-level access to an XML document: you can
parse documents much larger than your available system
memory, and you can construct your own data structures
using your callback event handlers.

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More XML XSLT RSS Interview Questions

how to transform an XML file into HTML using XSL transformation (XSLT)?

0 Answers  


What is the concept of xpointer?

0 Answers  


Is using rss feeds legal?

0 Answers  


What is the use of annotations in reference to an xml document?

0 Answers  


Tell me can we use graphics in xml?

0 Answers  


What are the different scenarios under which an xml schema may be used?

0 Answers  


How do you make an rss feed?

0 Answers  


What is XPATH? What is the use of it in XML?

0 Answers   Sans Pareil IT Services,


What is excel xml format?

0 Answers  


What is pom xml?

0 Answers  


Is xml a nosql?

0 Answers  


What is xslt example?

0 Answers  


Categories