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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is struts framework?

1027


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

1034


What are struts in java?

976


How exceptions are handled in struts application?

1204


What are inner class and anonymous class?

1038


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

1060


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

993


how does request processor relates to action mapping?

958


Define struts?

1088


How properties of a form are validated in Struts?

1097


Which file is used by controller to get mapping information for request routing?

1101


What is struts 2 framework in java?

1077


When should be opt for struts framework?

1082


How can we handle exceptions thrown by application in Struts2?

991


Can we have multiple struts config files in a single web app?

985