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 is apache struts framework?
What are the applications of struts?
Provide some important Struts2 constants that you have used?
Does apache tomcat use struts?
Does apache struts run on windows?
What do you mean by a custom tag?
In which method of action class the business logic is executed?
Are struts still used?
How action mapping is configured in Struts?
What are the conditions for actionform to work correctly?
How is a lookup dispatch action created?
What configuration changes are required to use resource files in Struts?
Which tag is used to declare constants in struts xml?
How can duplicate form submission be handled in struts 2?
What is struts xml?