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

1. sax is an event based parser and raise and event, while
dom is not
2. sax is forward only where as dom can acess both was
forward as well as backwards.
3. sax parses the file as it reads where as the dom loads
the file into memory to parse the file.
4. Sax does not have memory constraints where as the dom
has momory constraints as xml file is loaded into the
momory to parse the file.
5. sax is read only , dom is read and write both.
6. if you have to parse and use the content only once ,
consider using sax if the xml file and content are used
extensively then consider using dom

Is This Answer Correct ?    187 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java struts?

894


What is struts and springs in java?

993


Briefly tell the two kinds of form beans.

931


Why was reload removed from struts (since 1.1)?

946


What is the purpose of @result?

989


Why it called struts?

901


How to use forward action to restrict a strut application to mvc?

1013


What is the purpose of @doublerangefieldvalidator annotation?

996


What is the purpose of redirect result type?

992


What are the conditions for actionform to work correctly?

991


What is actioninvocation in struts2?

982


What's mvc pattern ?

963


Why are frameworks used?

955


When should we use SwtichAction?

1022


What do you mean by struts.dev mode?

936