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 life cycle methods of interceptor?
What is the use of form bean in struts?
How to convert struts to spring mvc?
What is the purpose of form-beans tag in struct-config.xml?
Which configuration files are used in struts?
Which design pattern is implemented by Struts2 interceptors?
What does the term struts mean?
What is the purpose of @element?
Is struts compatible with other java technologies?
What is apache struts framework?
What is actioncontext?
What is actioninvocation?
Explain the difference between dispatchaction and lookupdispatchaction in struts?
What is the purpose of constant tag in struts.xml?
How many Action classes have been used in your project? Differences between struts 1.1 and 1.3?