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

Both SAX and DOM are used to parse the XML document. Both
has advantages and disadvantages and can be used in our
programming depending on the situation
SAX:
1. Parses node by node
2. Doesnt store the XML in memory
3. We cant insert or delete a node
4. Top to bottom traversing
DOM
1. Stores the entire XML document into memory before processing
2. Occupies more memory
3. We can insert or delete nodes
4. Traverse in any direction.
If we need to find a node and doesnt need to insert or
delete we can go with SAX itself otherwise DOM provided we
have more memory.

Is This Answer Correct ?    197 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is struts 2 framework in java?

1037


In how many ways duplicate form submission can occurs?

986


What is the purpose of '@keyproperty'?

1027


How is forward action used for integration?

1015


Difference between html tags and struts specific html tags

900


What is the difference between Jakarta Struts and Apache Struts? Which one is better to use?

1025


What is difference between struts1 and struts2?

921


Can we have more than one struts-config.xml file for a single struts application?

930


What is the purpose of @requiredstringvalidator?

965


Is struts 1 still supported?

922


What’s the difference between struts and turbine? What’s the difference between struts and espresso?

985


How struts control data flow?

1104


What are the reasons for an error message not being displayed while developing struts application?

941


What is the use of reset method of ActionForm class?

1032


What are the features of struts 2?

1047