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 struts2 in java?
What is the purpose of '@keyproperty'?
What is the forward action utilized for?
What is the difference between struts and spring?
How is forward action used for integration?
What is action class?
how does request processor relates to action mapping?
How we can controlled duplicate form submission in struts?
What are the core components of a struct2 based application?
How can we display all validation errors to user on jsp page?
What is apache struts vulnerability?
How you will enable front-end validation based on the xml in validation.xml?
What is the purpose of @before?
What is difference between interceptors and filters?
How client side validation is enabled on a jsp form?