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 diff. between DOM and SAX ?

Answer Posted / csawant

Dom: (Tree-based)
This maps an XML document into an internal tree structure,
then allow an application to navigate that tree.

Tree-based APIs are useful for a wide range of
applications, but they normally put a great strain on
system resources, especially if the document is large.
Furthermore, many applications need to build their own
strongly typed data structures rather than using a generic
tree corresponding to an XML document. It is inefficient to
build a tree of parse nodes, only to map it onto a new data
structure and then discard the original.

SAX:(Event-based), SAX on the other hand, reports parsing
events (such as the start and end of elements) directly to
the application through callbacks, and does not usually
build an internal tree. The application implements handlers
to deal with the different events, much like handling
events in a graphical user interface.

In both of those cases, an event-based API provides a
simpler, lower-level access to an XML document: you can
parse documents much larger than your available system
memory, and you can construct your own data structures
using your callback event handlers.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a valid xml?

877


How to transform an XML document into another XML document?

982


Write a program to show the element is occurring as a child?

843


When will u use a XMLDataDocument and when will u use a XPathDocument? What's the differences between the two?

2170


What is rss element rss?

808


Can we do sorting in XSL ? how do you deal sorting columns dynamically in XML.

2800


How do I display an rss feed on my website?

848


What are the three main characteristics of xml?

913


What is use of rss feed in website?

934


What is an xml map?

885


Write a program to use the stylesheet element?

814


How to use XML DOM model on client side using JavaScript.

3755


What are the differences between xml and html?

914


What are xml tags?

804


What is xl s size?

882