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??

Answer Posted / ashish

DOM
1. Tree of nodes
2. Memory: Occupies more memory, preffered for small XML
documents
3. Slower at runtime
4. Stored as objects
5. Programmatically easy
6. Ease of navigation
SAX
1. Sequence of events
2. Doesn't use any memory preferred for large documents
3. Faster at runtime
4. Objects are to be created
5. Need to write code for creating objects
6. Backward navigation is not possible as it sequentially
processes the document

Is This Answer Correct ?    19 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List the important attribute and elements of action mapping under struts.

986


What is the purpose of @customvalidator annotation?

996


How interceptor works in struts 2?

1048


What is the purpose of @key?

1052


Which interceptor is responsible for i18n support?

934


Can we have multiple struts config files ?

959


What does validation interceptor?

997


What’s the difference between struts and espresso?

993


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

964


What is the use of web xml in struts2?

906


Why use spring, if you are already using struts?

996


What is struts2 in java?

1039


How are interceptors and servlet filters different?

979


What are the differences between http direct and http indirect?

973


What is apache struts framework?

964