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
What are disadvantages of Struts?
how to debug struts project in netbean ?
What is struts2 framework?
Which interceptor is responsible for file upload support?
What is the use of reset method of ActionForm class?
Mark the differences between html tags and strut specific html tags.
What is difference between struts1 and struts2?
What are pull and push mvc architecture and which architecture does struts2 follow?
What is strut web xml?
What helpers in the form of jsp pages are provided in struts framework?
Is struts action class singleton?
What applications use apache struts?
What is use of i18n interceptor?
What is the purpose of constant tag in struts.xml?
What is struts 2 framework in java?