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 are the important methods of actionform?
What is the default location of result pages and how can we change it?
What are the core components of a struct2 based application?
What is struts.devmode?
What are the struts2 error message keys that can come during file uploading process?
What is the purpose of @action annotation?
State the procedure for using forward attribute of link tag’s.
Explain the core end goal while using java struts?
How is token generated?
What’s the difference between validation.xml and validator-rules.xml files in struts validation framework?
What is the difference between plain-validator and field-validator?
What is the purpose of @beforeresult annotation?
What’s the difference between struts and turbine? What’s the difference between struts and espresso?
What are the classes used in struts?
What are the different kinds of actions in struts?