Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Explanation on Parser, Sax and Dom

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 21-11-2009
Member
 
Join Date: Nov 2009
Posts: 823
Explanation on Parser, Sax and Dom
  

Hi,
I am looking for a detailed description of PARSER, SAX and DOM. This are most common and needed terms in XML language. I have designed a site for a project work. This site states information on a local area development. Now the site is linked to a database which works on XML. I am quiet familiar but does not what is the actual work the above terms meant for. Thanks in advance.

Reply With Quote
  #2  
Old 21-11-2009
Member
 
Join Date: May 2008
Posts: 2,382
Re: Explanation on Parser, Sax and Dom

A parser is a software tool, a parser, which allows a client application to validate (if it is a validating parser) an XML document and read it, see change. A parser makes available to the application client read the XML data through APIs, the most common being SAX and DOM. Another class of parsers, more recently, includes a pull technology, combining the advantages of SAX - defined as a PUSH technology - and without their drawbacks DOM . StAX (Streaming API for XML) is an example of Java API Pull parsers implemented by BEA and Sun.
Reply With Quote
  #3  
Old 21-11-2009
Member
 
Join Date: Feb 2008
Posts: 1,845
Re: Explanation on Parser, Sax and Dom

DOM is a W3C recommendation, proposed in several versions (level) with features and increasing the compatibility of which is rising; The Level 1 became a recommendation on October 1, 98, Level 2 (XML) November 13, 2000, and all elements of level 3 are not recommendations to date. DOM (Document Object Model) is an API for accessing the contents of an XML document as a tree structure. The XML document, having been fully loaded into memory, is accessible through a set of 'objects corresponding to different types of knots in it, and describing methods for traversing the tree in a hierarchical or cross.
Reply With Quote
  #4  
Old 21-11-2009
Member
 
Join Date: Jan 2008
Posts: 1,515
Re: Explanation on Parser, Sax and Dom

It is very helpful for reading large documents. It will not cons not suitable for cases where the client application can not be satisfied with a linear path and "snippets" of the XML document. SAX (Simple API for XML) is an API based on an event model, which transforms an XML document into a stream of events triggered by reading XML syntactic elements like start tag, end tag, etc. The model is somewhat modeled on the GUI, the client application becomes an "event listener". SAX has the advantage, through its operation, not read the code in small portions, which avoids to load into memory completely, unlike DOM.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Explanation on Parser, Sax and Dom"
Thread Thread Starter Forum Replies Last Post
.NET Configuration Parser Error on start up Barraq Operating Systems 5 11-04-2011 09:05 PM
Which JSON parser works on Windows Phone 7? Loyalpalm Portable Devices 3 27-10-2010 09:59 AM
XML Expat Parser in PHP sivaranjan Software Development 4 25-02-2010 01:37 AM
Cannot Uninstall MSXML 6.0 Parser (KB933579) from Add/Remove Programs TimKell Windows Update 4 20-10-2009 08:00 PM
Prefix not Bound to a namespace Error with XML parser Nihar Khan Software Development 3 02-03-2009 01:25 PM


All times are GMT +5.5. The time now is 01:34 AM.