XML PROCESSORS
AN XML PROCESSOR IS A NECESSARY PIECE OF THE
XML PUZZLE. THE XML PROCESSOR TAKES THE XML
DOCUMENT AND DTD AND PROCESSES THE
INFORMATION SO THAT IT MAY THEN BE USED BY
APPLICATIONS REQUESTING THE INFORMATION.
PURPOSE OF XML PROCESSORS
•
•
•
•
NEED FOR API FOR XML PROCESSORS.
SAX APPROACH
• The simple API for XML(SAX) was released in may 1998 was
developed by XML user group ,XML-DEV
• It has been widely accepted as a de facto standard and is now
widely supported by xml processors
• This approach is called event processing.
• Whenever a syntactic structure of document is recognized the
processors signals an event to application by calling event handler.
DOM APPROACH
• Document object model(DOM) builds a hierarchical syntactic
structure of the document.
• The parser part of xml processors builds the DOM tree.
• Nodes of tree are represented as objects that can be accessed and
processed or modified by the application.
• After parsing the DOM representation is in memory and can be
accessed using tree traversals as well as random accesses.
ADVANTAGES OF SAX APPROACH
• SAX structure is not stored in memory
• Sax is faster than DOM approach.
ADVANTAGES OF DOM APPROACH
• If any part of document must be accessed more than once by the
application.
• If a application is required to do any rearrangement of document
, that can be done if whole document is accessible at the same
time.
• Accesses to random part of document are possible
• It avoids any processing of a document that is later found to be
invalid
THANK YOU
SAURAV MAWANDIA

Xml processors

  • 1.
    XML PROCESSORS AN XMLPROCESSOR IS A NECESSARY PIECE OF THE XML PUZZLE. THE XML PROCESSOR TAKES THE XML DOCUMENT AND DTD AND PROCESSES THE INFORMATION SO THAT IT MAY THEN BE USED BY APPLICATIONS REQUESTING THE INFORMATION.
  • 2.
    PURPOSE OF XMLPROCESSORS • • • •
  • 3.
    NEED FOR APIFOR XML PROCESSORS.
  • 4.
    SAX APPROACH • Thesimple API for XML(SAX) was released in may 1998 was developed by XML user group ,XML-DEV • It has been widely accepted as a de facto standard and is now widely supported by xml processors • This approach is called event processing. • Whenever a syntactic structure of document is recognized the processors signals an event to application by calling event handler.
  • 5.
    DOM APPROACH • Documentobject model(DOM) builds a hierarchical syntactic structure of the document. • The parser part of xml processors builds the DOM tree. • Nodes of tree are represented as objects that can be accessed and processed or modified by the application. • After parsing the DOM representation is in memory and can be accessed using tree traversals as well as random accesses.
  • 6.
    ADVANTAGES OF SAXAPPROACH • SAX structure is not stored in memory • Sax is faster than DOM approach.
  • 7.
    ADVANTAGES OF DOMAPPROACH • If any part of document must be accessed more than once by the application. • If a application is required to do any rearrangement of document , that can be done if whole document is accessible at the same time. • Accesses to random part of document are possible • It avoids any processing of a document that is later found to be invalid
  • 8.