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
What are the core components of a struct2 based application?
What are the struts2 error message keys that can come during file uploading process?
What does action do in struts?
What steps are required to for an application migration from Struts1 to Struts2?
What is validate() and reset() functions?
What does params interceptor?
How to combine the struts with velocity template?
Explain the difference between plain-validator and field-validator in struts?
What are the main classes which are used in struts application?
What is DynaActionForm?
What is the purpose of @requiredstringvalidator?
What is the default suffix for Struts2 action URI and how can we change it?
What is the difference between validation.xml and validator-rules.xml files in struts validation framework?
What are disadvantages of Struts?
What are pull and push mvc architecture and which architecture does struts2 follow?