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

939


What is the use of forwardaction?

1017


Can you explain struts.properties in struts2?

954


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

934


What is strut web xml?

947


Explain about the validation steps which have to be carried during validation of client-side address?

984


Explain about tiles?

1052


What is the naming convention for a resource bundle file in struts2?

990


What do you mean by actionservlet?

993


Why we use struts over servlets?

1072


What is strut action mapping?

993


In which method of action class the business logic is executed?

987


What is container struts2?

997


How is a lookup dispatch action created?

1000


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

921