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
List the important attribute and elements of action mapping under struts.
What is the purpose of @customvalidator annotation?
How interceptor works in struts 2?
What is the purpose of @key?
Which interceptor is responsible for i18n support?
Can we have multiple struts config files ?
What does validation interceptor?
What’s the difference between struts and espresso?
What is action class? What are the types of action class?
What is the use of web xml in struts2?
Why use spring, if you are already using struts?
What is struts2 in java?
How are interceptors and servlet filters different?
What are the differences between http direct and http indirect?
What is apache struts framework?