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 the use of execAndWait interceptor?

987


What is http forward?

922


What are inner class and anonymous class?

942


Explain about tiles?

991


What are the important methods of actionform?

1016


What do you know about validation plugin ?

906


Give an example of validates method used to avoid errors.

930


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

934


What is the role of action class in struts?

979


What’s the utilization of resource bundle properties file in struts validation structure?

1042


What does modeldriven interceptor?

1006


Why are struts tightly coupled?

935


what is ACID test for fresh engineers??what is the pattern??

2742


Can you give an overview of how a struts application flows?

904


Why are frameworks used?

943