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 are the important methods of actionform?

1016


What is the default location of result pages and how can we change it?

957


What are the core components of a struct2 based application?

928


What is struts.devmode?

985


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

1010


What is the purpose of @action annotation?

969


State the procedure for using forward attribute of link tag’s.

902


Explain the core end goal while using java struts?

879


How is token generated?

972


What’s the difference between validation.xml and validator-rules.xml files in struts validation framework?

957


What is the difference between plain-validator and field-validator?

900


What is the purpose of @beforeresult annotation?

962


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

934


What are the classes used in struts?

1042


What are the different kinds of actions in struts?

1000