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
How can we work with error tags?
Which configuration file is used for storing jsp configuration information in struts?
What are the components of struts framework?
What are the two scope types for formbeans?
Why are struts tightly coupled?
Where can I get a copy of struts?
What should be the name of xml file used for validation in struts?
What is difference between actionform and dynaactionform?
What are the important methods of actionform?
In how many ways duplicate form submission can occurs?
How you will make available any message resources definitions file to the struts framework environment?
What is the procedure of operation of a form tag?
Can you explain the directory structure for a struts folder in brief ?
What are the core components of a struct2 based application?
In struts, how can we access java beans and their properties?