Home » Xerces-J-src.2.9.1 » org.apache.xerces » xni » [javadoc | source]
org.apache.xerces.xni
public interface: XMLDTDHandler [javadoc | source]

All Known Implementing Classes:
    XMLDTDLoader, DOMParser, DOMAddLines, UnparsedEntityHandler, XMLDTDFilter, DOMParserImpl, XNI2SAX, XIncludeHandler, XMLDocumentParser, Counter, PSVIParser, DOMASBuilderImpl, AbortHandler, SAXParser, DOMParserSaveEncoding, DefaultXMLDocumentHandler, XPointerHandler, Writer, RevalidatingDOMParser, SchemaDOMParser, JAXPSAXParser, CSVParser, AbstractDOMParser, XMLDTDProcessor, DTDGrammar, DocumentTracer, AbstractXMLDocumentParser, BalancedDTDGrammar, DTDParser, AbstractSAXParser, XML11DTDProcessor

The DTD handler interface defines callback methods to report information items in the DTD of an XML document. Parser components interested in DTD information implement this interface and are registered as the DTD handler on the DTD source.
Field Summary
public static final  short CONDITIONAL_INCLUDE    Conditional section: INCLUDE. 
public static final  short CONDITIONAL_IGNORE    Conditional section: IGNORE. 
Method from org.apache.xerces.xni.XMLDTDHandler Summary:
attributeDecl,   comment,   elementDecl,   endAttlist,   endConditional,   endDTD,   endExternalSubset,   endParameterEntity,   externalEntityDecl,   getDTDSource,   ignoredCharacters,   internalEntityDecl,   notationDecl,   processingInstruction,   setDTDSource,   startAttlist,   startConditional,   startDTD,   startExternalSubset,   startParameterEntity,   textDecl,   unparsedEntityDecl
Method from org.apache.xerces.xni.XMLDTDHandler Detail:
 public  void attributeDecl(String elementName,
    String attributeName,
    String type,
    String[] enumeration,
    String defaultType,
    XMLString defaultValue,
    XMLString nonNormalizedDefaultValue,
    Augmentations augmentations) throws XNIException
    An attribute declaration.
 public  void comment(XMLString text,
    Augmentations augmentations) throws XNIException
    A comment.
 public  void elementDecl(String name,
    String contentModel,
    Augmentations augmentations) throws XNIException
    An element declaration.
 public  void endAttlist(Augmentations augmentations) throws XNIException
    The end of an attribute list.
 public  void endConditional(Augmentations augmentations) throws XNIException
    The end of a conditional section.
 public  void endDTD(Augmentations augmentations) throws XNIException
    The end of the DTD.
 public  void endExternalSubset(Augmentations augmentations) throws XNIException
    The end of the DTD external subset.
 public  void endParameterEntity(String name,
    Augmentations augmentations) throws XNIException
    This method notifies the end of a parameter entity. Parameter entity names begin with a '%' character.
 public  void externalEntityDecl(String name,
    XMLResourceIdentifier identifier,
    Augmentations augmentations) throws XNIException
    An external entity declaration.
 public XMLDTDSource getDTDSource()
 public  void ignoredCharacters(XMLString text,
    Augmentations augmentations) throws XNIException
    Characters within an IGNORE conditional section.
 public  void internalEntityDecl(String name,
    XMLString text,
    XMLString nonNormalizedText,
    Augmentations augmentations) throws XNIException
    An internal entity declaration.
 public  void notationDecl(String name,
    XMLResourceIdentifier identifier,
    Augmentations augmentations) throws XNIException
    A notation declaration
 public  void processingInstruction(String target,
    XMLString data,
    Augmentations augmentations) throws XNIException
    A processing instruction. Processing instructions consist of a target name and, optionally, text data. The data is only meaningful to the application.

    Typically, a processing instruction's data will contain a series of pseudo-attributes. These pseudo-attributes follow the form of element attributes but are not parsed or presented to the application as anything other than text. The application is responsible for parsing the data.

 public  void setDTDSource(XMLDTDSource source)
 public  void startAttlist(String elementName,
    Augmentations augmentations) throws XNIException
    The start of an attribute list.
 public  void startConditional(short type,
    Augmentations augmentations) throws XNIException
    The start of a conditional section.
 public  void startDTD(XMLLocator locator,
    Augmentations augmentations) throws XNIException
    The start of the DTD.
 public  void startExternalSubset(XMLResourceIdentifier identifier,
    Augmentations augmentations) throws XNIException
    The start of the DTD external subset.
 public  void startParameterEntity(String name,
    XMLResourceIdentifier identifier,
    String encoding,
    Augmentations augmentations) throws XNIException
    This method notifies of the start of a parameter entity. The parameter entity name start with a '%' character.
 public  void textDecl(String version,
    String encoding,
    Augmentations augmentations) throws XNIException
    Notifies of the presence of a TextDecl line in an entity. If present, this method will be called immediately following the startEntity call.

    Note: This method is only called for external parameter entities referenced in the DTD.

 public  void unparsedEntityDecl(String name,
    XMLResourceIdentifier identifier,
    String notation,
    Augmentations augmentations) throws XNIException
    An unparsed entity declaration.