what is the difference between SAX Parser and DOM Parser??
Answer Posted / raju
SAX
• Parses node by node
• Doesn’t store the XML in memory
• We cant insert or delete a node
• SAX is an event based parser
• SAX is a Simple API for XML
• doesn’t preserve comments
• SAX generally runs a little faster than DOM
DOM
• Stores the entire XML document into memory before processing
• Occupies more memory
• We can insert or delete nodes
• Traverse in any direction.
• DOM is a tree model parser
• Document Object Model (DOM) API
• Preserves comments
• SAX generally runs a little faster than DOM
-raju
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the design role played by struts?
What does modeldriven interceptor?
How is the mvc design pattern used in struts framework?
Who makes the struts?
What are the steps involved in creating a strut application?
What is role of action class?
What is front controller in struts?
What’s the utilization of resource bundle properties file in struts validation structure?
Difference between struts and spring? Or why use spring, if you are already using struts?
What is the purpose of '@keyproperty'?
What is an interceptor stack?
Difference between html tags and struts specific html tags
Can explain about the validations and in your project where did u used the validations?
What is the purpose of struts.properties in struct2?
What is the default suffix for struts2 action uri ?