what is the diff. between DOM and SAX ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the main disadvantage of dom?

476


How do I subscribe to an rss feed?

445


How to use XML DOM model on client side using JavaScript.

3309


Is xml a nosql?

449


How does xml store and transport data?

614






How do I open an xml file in notepad ++?

488


What is the advantage of automated testing over manual testing?

483


What is the purpose of xml namespaces?

524


Why xml parser is used?

464


What happens when an element is being processed in forwards-compatible mode?

492


What is xsl format?

464


What is the difference between dtd and xml schema?

422


What is the use of xslt element?

482


Can I resolve the uri used as an xml namespace name?

456


How you define template in xslt? : xslt

489