DocumentHandler interface


package org.xml.sax;


public interface DocumentHandler {

  public void setDocumentLocator(Locator locator);
  
  public void startDocument()
   throws SAXException;
   
  public void endDocument()
   throws SAXException;
   
  public void startElement(String name, AttributeList atts)
   throws SAXException;
   
  public void endElement(String name)
   throws SAXException;
   
  public void characters(char[] text, int start, int length)
   throws SAXException;
   
  public void ignorableWhitespace(char[] text, int start, int length)
   throws SAXException;
   
  public void processingInstruction(String target, String data)
   throws SAXException;
   
  // Comments are silently dropped
  
  // Entity references are transparently resolved
  
  // CDATA sections are merged with text

  // DTDs are handled separately by a DTDHandler

}

Previous | Next | Top | Cafe con Leche

Copyright 2000 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified February 26, 2000