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

Is wsdl and xsd same?

459


What is difference between xml xsd and xslt?

441


How to transform an XML into XHTML?

522


Is xml meant to replace html?

486


Does the xml namespaces recommendation define anything except a two-part naming system for element types and attributes?

481






Write about well-formed and valid xml documents?

491


What is xml designed for?

450


What's the best rss reader?

442


What is the difference between xls and xlsx?

485


Why should I use xml?

472


Do I need rss feeds in outlook?

445


Where should I use xml?

491


Is there any xsd file to validate atom feed files?

575


Can I encode mathematics using XML?

514


Write a program to use the stylesheet element?

456