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

What does xsl stand for?

532


What is the function of xslt?

502


What is the difference between xsl and xml?

473


What is xsl attribute?

451


What is Complex Element?

476






What is atom 1.0 standard?

470


What happens if your atom feed fails the validation?

445


How do you create a docx file?

497


What is application xml?

448


Is xml a markup language?

467


How do I undeclare an xml namespace prefix?

504


How do I get xml into or out of a database?

511


Is wsdl and xsd same?

463


What is the difference between wsdl and xsd?

479


What is xml and why it is used?

457