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
Can a reducer dispatch an action?
What’s the difference between validation.xml and validator-rules.xml files in struts validation framework?
What is struts and springs in java?
What is the difference between Jakarta Struts and Apache Struts? Which one is better to use?
How does struts work?
Difference between html tags and struts specific html tags
Mark the differences between html tags and strut specific html tags.
What is the role of a handler in mvc based applications?
How does interceptor work in struts2?
What is the purpose of redirect result type?
What is the purpose of @doublerangefieldvalidator annotation?
What is Struts2?
What is apache struts vulnerability?
What is the difference between validation.xml and validator-rules.xml files in struts validation framework?
Describe the mvc on struts?