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 is the purpose of action-mappings tag in struct-config.xml?

582


What are the components of struts framework?

575


Which interceptor is responsible for i18n support?

518


What is an interceptor stack?

569


What are the two different types of validations that the validator framework supports?

519






What is the purpose of struts.xml in struct2?

671


Who makes the struts?

538


What is pojo in struts2?

560


What are the differences between http direct and http indirect?

465


How is the action mapping specified?

540


Where can I get a copy of struts?

537


What does the term struts mean?

549


What configuration changes are required to use Tiles in Struts?

563


What applications use apache struts?

489


What is the difference between struts1 and struts2?

511