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...

DOM & SAX parsers explanation and difference ?

Answer Posted / sangeri

DOM parser

1.In DOM parser the representation is in the memory as it
is used for the internal representation of an
XML document.
2.It reads the whole document and returns a DOM tree
representation of the
XML document.
3.So for smaller xml we can use DOM as memory is the
constraint.

SAX parser

1.It is event driven
2.It works incrementally and generates events that are
passed to the application.
3.For huge
XML we can go for SAX rather than DOM
4.It does not give any structural representation for the
XML document.

So depending on the application you develop you can choose
any of the parser

Is This Answer Correct ?    31 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can multiple xml namespace declarations be in scope at the same time?

957


What is rss (really simple syndication)?

845


How do I upload a podcast to spotify?

844


What is the full form of xsl?

929


How do I edit an xsl file?

856


What exactly is xml?

847


Explain about remote call procedure?

924


What happens about the presence of the top-level element?

878


How to use filtering function in xslt? : xslt

1011


What is the difference between xml and excel?

855


What is an xml feed?

836


How do you display xml with xslt?

937


How do I open a xsl file?

915


If xml does not have closing tag will it work ?

849


Explain the working of xslt?

998