what is the difference between SAX Parser and DOM Parser??
Answer Posted / penchala
Both SAX and DOM are used to parse the XML document. Both
has advantages and disadvantages and can be used in our
programming depending on the situation
SAX:
1. Parses node by node
2. Doesnt store the XML in memory
3. We cant insert or delete a node
4. Top to bottom traversing
DOM
1. Stores the entire XML document into memory before processing
2. Occupies more memory
3. We can insert or delete nodes
4. Traverse in any direction.
If we need to find a node and doesnt need to insert or
delete we can go with SAX itself otherwise DOM provided we
have more memory.
| Is This Answer Correct ? | 197 Yes | 11 No |
Post New Answer View All Answers
Are struts still used?
What is the purpose of form-beans tag in struct-config.xml?
What is action class?
What is action support class in struts2?
How struts control data flow?
What is request processor and how does it relates to action mapping?
Explain about the process of functioning of the struts program?
What is xml based validation in struts2?
What is the default suffix for struts2 action uri ?
Are actions thread safe?
What is the default suffix for Struts2 action URI and how can we change it?
How many Action classes have been used in your project? Differences between struts 1.1 and 1.3?
What is struts xml?
How is forward action used for integration?
What are the core classes of struts?