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 the differences between struts1 and struts2?

534


What are result types in struts?

578


What does apache struts do?

508


What are the applications of struts?

537


When should we use SwtichAction?

600






What is the purpose of @element?

584


what is meant by Struts Validator Framework?

569


What is java struts?

543


How interceptor works in struts 2?

596


What are the steps required for setting up validator framework in struts?

567


Explain about tiles?

579


What are the differences between http direct and http indirect?

472


What are the benefits of Struts framework?

564


Lists the bundled validators in struts?

555


Can a reducer dispatch an action?

503