Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



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

Answer / jayaprakash

good explanation......
Thank you.

Is This Answer Correct ?    2 Yes 0 No

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

Answer / 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

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

Answer / prem

Thank you to all to give the feedback about the differences
between the sax and dom.

Is This Answer Correct ?    1 Yes 1 No

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

Answer / 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

More Struts Interview Questions

What do you mean by inner class and anonymous class?

0 Answers  


What is the purpose of struct-config.xml in struct2?

0 Answers  


What are the struts2 error message keys that can come during file uploading process?

0 Answers  


What is the purpose of @beforeresult annotation?

0 Answers  


Explain the life cycle of a request in struct2 application?

0 Answers  


In struts.xml, what does the attribute "method" stands for in the "action" tag?

0 Answers  


What is validate() and reset() functions?

0 Answers  


Are actions thread safe?

0 Answers  


What are different Struts2 tags? How can we use them?

0 Answers  


What is the purpose of @results annotation?

0 Answers  


what happen if the private constructor is written in a claass

6 Answers  


Why are struts tightly coupled?

0 Answers  


Categories