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 discontinuous strut?
What is the use of forwardaction?
Can you explain struts.properties in struts2?
Can we have more than one struts-config.xml file for a single struts application?
What is strut web xml?
Explain about the validation steps which have to be carried during validation of client-side address?
Explain about tiles?
What is the naming convention for a resource bundle file in struts2?
What do you mean by actionservlet?
Why we use struts over servlets?
What is strut action mapping?
In which method of action class the business logic is executed?
What is container struts2?
How is a lookup dispatch action created?
What is the difference between validation.xml and validator-rules.xml files in struts?