what is the difference between SAX Parser and DOM Parser??

Answer Posted / shyam miyatra

It really nice Explanation by penchala the more about XML

SAX :
---
SAX Parser is the one which is developed to run the java
programs especially.

DOM:
---
DOM is developed by w3c consortium so that it is an open
standard.
In DOM the xml file is arranged as a tree and backward and
forward search is possible for searching the tags and
evaluating the data which it holds.
It depends upon the application and ease of data
accessiblity.
If we want to extract the data from a xml file once we
have to move to SAX which is one time top to bottom read
approach and if we want ot randomly pick the data in an xml
file then the tree reperesentation of DOM model is to be
put into use. Thats all !

Is This Answer Correct ?    35 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the core components of a struct2 based application?

552


What are the struts2 error message keys that can come during file uploading process?

603


What does action do in struts?

532


What steps are required to for an application migration from Struts1 to Struts2?

606


What is validate() and reset() functions?

560






What does params interceptor?

529


How to combine the struts with velocity template?

490


Explain the difference between plain-validator and field-validator in struts?

522


What are the main classes which are used in struts application?

496


What is DynaActionForm?

597


What is the purpose of @requiredstringvalidator?

560


What is the default suffix for Struts2 action URI and how can we change it?

519


What is the difference between validation.xml and validator-rules.xml files in struts validation framework?

613


What are disadvantages of Struts?

549


What are pull and push mvc architecture and which architecture does struts2 follow?

506