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
How do I convert pdf to docx?
How xml makes your data more available?
Can I use a relative uri as a namespace name?
What is xml simple definition?
Where is office xml handler located?
What does it mean to subscribe to a blog?
How do I find rss feeds?
How do I open an xml file?
What is xml syntax?
Is there any way that html can be replaced with xml?
Is api a web service?
What is XSL FO Documents?
Which browser first used the rss feed?
Explain about xml namespaces?
Can we do sorting in XSL ? how do you deal sorting columns dynamically in XML.