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 validate() and reset() method does ?

1106


Explain design patterns which is used in struts?

984


When should be opt for struts framework?

1059


At the point, you should go for struts framework?

939


What do struts do?

982


Name some useful annotations introduced in Struts2?

981


Explain about the future of struts?

957


Does struts include its own unit tests?

1033


Explain about the tag?

1114


How to convert struts to spring mvc?

1008


Are actions thread safe?

984


Can we integrate struts with spring?

1008


What configuration changes are required to use resource files in Struts?

1040


What are interceptors in struts 2?

1022


What is defeult result type?

1075