what is the difference between SAX Parser and DOM Parser??

Answer Posted / rajendra

1. s->does not store xml in memory
d->store the entire xml document in memory

2. s->top to bottom traversing
d->traverse in any direction

3. s->insert or delete node is possible
d->insert or delete node is not possible

4. s->especially for java
d->not only for java

5. s->event driven,fast & lightweight
d->tree structure,heavy weight to load & store

6. s->parse the document while reading
d->load the document in memory to parse

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is struts2 namespace?

511


What is the differences between struts1 and struts2?

532


Explain the components of struts?

544


What is the use of form bean in struts?

509


What inbuilt themes are provided by struts2?

593






How we can controlled duplicate form submission in struts?

522


What is action class? What are the types of action class?

531


How interceptor works in struts 2?

595


What does modeldriven interceptor?

593


What is the purpose of @action annotation?

571


What is the purpose of @element annotation annotation?

602


What is Custom Type Converter in Struts2?

630


What is the procedure of operation of a form tag?

556


How to override the default error message that can come during file uploading process?

578


How do you find the struts version being used in a project?

519