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

Can you give an overview of how a struts application flows?

958


Which design pattern is implemented by Struts2 interceptors?

1005


What is the use of token interceptor in Struts2?

1090


What types of validations are available in xml based validation in struts2?

1061


What is the difference between validation.xml and validator-rules.xml files in struts?

925


What configuration changes are required to use Tiles in Struts?

1018


What is the difference between shocks and struts?

963


What do you mean by dynaactionform?

981


Why are struts tightly coupled?

983


What are the ways in which duplicate form submission can occur?

947


What are the cons of struts 2?

1012


What is the purpose of @result annotation?

1154


What are action errors and error?

1050


Lists the bundled validators in struts?

1027


How to use dispatchaction?

1047