what is the difference between SAX Parser and DOM Parser??
Answer Posted / ashish
DOM
1. Tree of nodes
2. Memory: Occupies more memory, preffered for small XML
documents
3. Slower at runtime
4. Stored as objects
5. Programmatically easy
6. Ease of navigation
SAX
1. Sequence of events
2. Doesn't use any memory preferred for large documents
3. Faster at runtime
4. Objects are to be created
5. Need to write code for creating objects
6. Backward navigation is not possible as it sequentially
processes the document
| Is This Answer Correct ? | 19 Yes | 5 No |
Post New Answer View All Answers
What is ValueStack and OGNL?
How exceptions are handled in struts application?
What is action support class in struts2?
Which tag is used to declare constants in struts xml?
Which servlet does the struts framework use?
What are the benefits of Struts framework?
Explain integrate log4j in struts2 application?
Are struts still used?
Does apache struts run on windows?
What do you mean by tiles in struts?
What is role of actionservlet?
What does params interceptor?
What is struts-default package and what are it’s benefits?
What applications use apache struts?
What is the difference between empty default namespace and root namespace?