DOM & SAX parsers explanation and difference ?

Answer Posted / harish

DOM Parser is nothing but, Document Object Model Parser, It
loads the entire XML file into the primary memory and
represents in a Tree structured manner. It traverses from
Root Node to Child Node.
SAX Parser is nothing but, Simple API for XML. It is event
driven based parser. It traverse node by node in a
sequential order. It won?t load the entire xml file into
the memory. If it is small xml file, better go for DOM
Parser. If it huge xml file, better go for SAX Parser.

Is This Answer Correct ?    52 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where do I find my rss feed url on wordpress?

538


How do I create an xml file from excel?

509


What is xml and why it is used?

541


What is parsing and how do I do it in xml?

537


Which is a language for finding information in an xml document?

523






What do you mean by nested elements in xml?

567


How many types of xpath are there?

526


Explain about xml namespaces?

605


Why do we need dtd?

550


How do I run an xslt file?

531


Which xml parser comes with weblogic server 6.1?

546


What is an xml expansion pack?

581


Does youtube have an rss feed?

557


Why do we use vlookup?

547


How is xml extensible?

560