SCJP home
  SCWD Home
  XML Tutorial
  Java jobs
  Java News
  About Java Prepare
   Books
  Certification Books
  SCEA Books
  SCWD Books
  Online Books
   Tutorial Topics
  Basic XML
  DTD
  Schema
  Entities
  Name Spaces
  Xlink and Xpath
  DOM
  SAX
  Xpath
  XSL-FO
  xslt
   Partners
xmlspy
 
SCWD home | SCJP home | XML books

SAX

  1. SAX parsers process the XML documents sequentially
  2. Each element is parsed down to its leaf node before moving on to the next sibling of that element, therefore at no point is there any clear relation of what level of the tree we are at.
  3. When is SAX used:
    1. For handling large documents
    2. Retrieving a specific value
    3. Creating a subset of the document
  4. When is DOM used:
    1. Modifying the document (as SAX is read-only)
    2. Random access
  5. Handler interfaces:
    1. Org.xml.sax.ContentHandler
    2. Org.xml.sax.ErrorHandler
    3. Org.xml.sax.DTDHandler
    4. Org.xml.sax.EntityResolver

46% off Bestsellers at BAMM.COM
SCWD home | SCJP home | XML books