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 struts framework?
What is the purpose of struct-config.xml in struct2?
What are struts in java?
How exceptions are handled in struts application?
What are inner class and anonymous class?
What is the difference between Jakarta Struts and Apache Struts? Which one is better to use?
What are the ways in which duplicate form submission can occur?
how does request processor relates to action mapping?
Define struts?
How properties of a form are validated in Struts?
Which file is used by controller to get mapping information for request routing?
What is struts 2 framework in java?
When should be opt for struts framework?
How can we handle exceptions thrown by application in Struts2?
Can we have multiple struts config files in a single web app?