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 do I open xml with?

433


What is the relationship between xml namespaces and the xml 1.0 recommendation?

489


What are XML Data Islands?

496


XML serialization ?

1468


Write about well-formed and valid xml documents?

502






What is targetnamespace in xml?

468


What do you mean by xslt element?

468


Why we use xml instead of html?

476


How do I include one xml file in another?

504


How do you make an rss feed?

463


How do I remove xml from excel?

459


What is text () in xpath?

464


What is the difference between xml and xlsx?

463


How do I put an rss feed on my podcast on itunes?

454


Do xml namespaces apply to entity names, notation names, or processing instruction targets?

583