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 the purpose of @beforeresult?
Which class of struts is responsible to converts data types from string and vice versa?
How struts control data flow?
Explain struts.devmode?
What should be the name of xml file used for validation in struts?
Why use spring, if you are already using struts?
What does params interceptor?
Are actions thread safe?
Why are frameworks used?
What are the various struts tag libraries?
Can you give an overview of how a struts application flows?
What is the difference in using Action interface and ActionSupport class for our action classes, which one you would prefer?
What do you mean by actionservlet?
What is apache struts used for?
What is includeaction?