Content Pipeline Guide > SAX2 Filter Interfaces > DeclHandler
  
DeclHandler
The DeclHandler is an optional extension handler for SAX2 that provides information about DTD declarations in an XML document. XML readers are not required to recognize this handler, and it is not part of core-only SAX2 distributions.
* 
Data-related DTD declarations (unparsed entities and notations) are reported using the DTDHandler interface.
If you are using the DeclHandler interface with the LexicalHandler interface, all events will occur between the startDTD and endDTD events.
package org.xml.sax.ext;
import org.xml.sax.SAXException;
public interface DeclHandler
{
public abstract void elementDecl (String name, String model)
throws SAXException;
public abstract void attributeDecl
(String eName, String aName, String type,
String valueDefault, String value)
throws SAXException;
public abstract void internalEntityDecl
(String name, String value)
throws SAXException;
public abstract void externalEntityDecl
(String name, String publicId,
String systemId)
throws SAXException;
}