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
What is xsd file in c#?
what is the role of the doctype declaration in reference to xml?
Can I use xml namespaces in dtds?
Is there any dtd file to validate atom feed files?
what is difference between mail sendig in .net 1.1 and .net 2.0
What are the xml tags?
How do I create an xml schema in excel?
Is xml used today?
Explain an overview of xml.
Does xml replace html?
What’s a document type definition (dtd) and where do I get one?
What does xslt stand for?
What is xsl in xml?
How do I set up google rss feed?
What is dtd and its types?