Xerces-J API: Class DOMParser

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.xerces.parsers
Class DOMParser

    java.lang.Object
      |
      +--org.apache.xerces.framework.XMLParser
            |
            +--org.apache.xerces.parsers.DOMParser

public class DOMParser
extends XMLParser
implements XMLDocumentHandler

DOMParser provides a parser which produces a W3C DOM tree as its output

Version:
  $Id: DOMParser.java,v 1.51 2001/07/09 19:29:09 sandygao Exp $

Inner classes inherited from class org.apache.xerces.framework.XMLDocumentHandler
`XMLDocumentHandler.DTDHandler`

Field Summary
`static java.lang.String` | `DEFAULT_DEFERRED_DOCUMENT_CLASS_NAME` Default deferred document class name (org.apache.xerces.dom.DeferredDocumentImpl).
`static java.lang.String` | `DEFAULT_DOCUMENT_CLASS_NAME` Default programmatic document class name (org.apache.xerces.dom.DocumentImpl).
`protected int` | `fAmpIndex`
`protected int` | `fAposIndex`
`protected Node` | `fCurrentElementNode`
`protected int` | `fCurrentEntityName`
`protected int` | `fCurrentEntityNode`
`protected int` | `fCurrentNodeIndex`
`protected DeferredDocumentImpl` | `fDeferredDocumentImpl`
`protected Document` | `fDocument`
`protected DocumentImpl` | `fDocumentImpl`
`protected int` | `fDocumentIndex`
`protected DocumentType` | `fDocumentType`
`protected int` | `fDocumentTypeIndex`
`protected int` | `fGtIndex`
`protected boolean` | `fInCDATA`
`protected boolean` | `fInDTD`
`protected int` | `fLtIndex`
`protected int` | `fQuotIndex`
`protected boolean` | `fWithinElement`

Fields inherited from class org.apache.xerces.framework.XMLParser
`fEntityHandler, fErrorReporter, fGrammarResolver, fParseInProgress, fScanner, fStringPool, fValidator, SAX2_FEATURES_PREFIX, SAX2_PROPERTIES_PREFIX, XERCES_FEATURES_PREFIX, XERCES_PROPERTIES_PREFIX`

Constructor Summary
`DOMParser()` Default constructor.

Method Summary
`void` | `attlistDecl(QName elementDecl, QName attributeDecl, int attType, boolean attList, java.lang.String enumString, int attDefaultType, int attDefaultValue)` <!ATTLIST Name AttDef>
`void` | `characters(char[] ch, int start, int length)` callback for characters.
`void` | `characters(int dataIndex)` Characters.
`void` | `comment(int dataIndex)` Comment.
`void` | `elementDecl(QName elementDecl, int contentSpecType, int contentSpecIndex, XMLContentSpec.Provider contentSpecProvider)` <!ELEMENT Name contentspec>
`void` | `endCDATA()` End CDATA section.
`void` | `endDocument()` End document.
`void` | `endDTD()` This function will be called at the end of the DTD.
`void` | `endElement(QName elementQName)` End element.
`void` | `endEntityReference(int entityName, int entityType, int entityContext)` End entity reference.
`void` | `endNamespaceDeclScope(int prefix)` Report the end of the scope of a namespace declaration.
`void` | `externalEntityDecl(int entityNameIndex, int publicIdIndex, int systemIdIndex)` <!ENTITY Name ExternalID> (external)
`void` | `externalPEDecl(int entityNameIndex, int publicIdIndex, int systemIdIndex)` <!ENTITY % Name ExternalID> (external)
`boolean` | `getCreateEntityReferenceNodes()` Returns true if entity references within the document are included in the document tree as EntityReference nodes.
`protected Element` | `getCurrentElementNode()` Returns the current element node.
`protected boolean` | `getDeferNodeExpansion()` Returns true if the expansion of the nodes in the default DOM implementation are deferred.
`Document` | `getDocument()` Returns the document.
`protected java.lang.String` | `getDocumentClassName()` Returns the fully qualified class name of the document factory used when constructing the DOM tree.
`boolean` | `getFeature(java.lang.String featureId)` Query the current state of any feature in a SAX2 parser.
`java.lang.String[]` | `getFeaturesRecognized()` Returns a list of features that this parser recognizes.
`boolean` | `getIncludeIgnorableWhitespace()` Returns true if ignorable whitespace text nodes are included in the DOM tree.
`java.lang.String[]` | `getPropertiesRecognized()` Returns a list of properties that this parser recognizes.
`java.lang.Object` | `getProperty(java.lang.String propertyId)` Return the current value of a property in a SAX2 parser.
`void` | `ignorableWhitespace(char[] ch, int start, int length)` Not called.
`void` | `ignorableWhitespace(int dataIndex)` Ignorable whitespace.
`protected void` | `init()` Initializes the parser to a pre-parse state.
`void` | `internalEntityDecl(int entityNameIndex, int entityValueIndex)` <!ENTITY Name EntityValue> (internal)
`void` | `internalPEDecl(int entityNameIndex, int entityValueIndex)` <!ENTITY % Name EntityValue> (internal)
`void` | `internalSubset(int internalSubset)` Supports DOM Level 2 internalSubset additions.
`void` | `notationDecl(int notationNameIndex, int publicIdIndex, int systemIdIndex)` <!NOTATION Name ExternalId>
`void` | `processingInstruction(int targetIndex, int dataIndex)` Processing instruction.
`void` | `reset()` Resets the parser.
`void` | `resetOrCopy()` Resets or copies the parser.
`protected void` | `setCreateEntityReferenceNodes(boolean create)` This feature determines whether entity references within the document are included in the document tree as EntityReference nodes.
`protected void` | `setDeferNodeExpansion(boolean deferNodeExpansion)` This method sets whether the expansion of the nodes in the default DOM implementation are deferred.
`protected void` | `setDocumentClassName(java.lang.String documentClassName)` This method allows the programmer to decide which document factory to use when constructing the DOM tree.
`void` | `setFeature(java.lang.String featureId, boolean state)` Set the state of any feature in a SAX2 parser.
`void` | `setIncludeIgnorableWhitespace(boolean include)` This feature determines whether text nodes that can be considered "ignorable whitespace" are included in the DOM tree.
`void` | `setProperty(java.lang.String propertyId, java.lang.Object value)` Set the value of any property in a SAX2 parser.
`void` | `startCDATA()` Start CDATA section.
`void` | `startDocument()` Start document.
`void` | `startDTD(QName rootElement, int publicId, int systemId)` This function will be called when a <!DOCTYPE...> declaration is encountered.
`void` | `startElement(QName elementQName, XMLAttrList xmlAttrList, int attrListIndex)` Start element.
`void` | `startEntityReference(int entityName, int entityType, int entityContext)` Start entity reference.
`void` | `startNamespaceDeclScope(int prefix, int uri)` Report the start of the scope of a namespace declaration.
`void` | `textDecl(int versionIndex, int encodingIndex)` Text declaration.
`void` | `unparsedEntityDecl(int entityNameIndex, int publicIdIndex, int systemIdIndex, int notationNameIndex)` <!ENTITY Name ExternalID NDataDecl> (unparsed)
`void` | `xmlDecl(int versionIndex, int encodingIndex, int standaloneIndex)` XML declaration.

Methods inherited from class org.apache.xerces.framework.XMLParser
`addRecognizer, getAllowJavaEncodings, getContinueAfterFatalError, getEntityResolver, getErrorHandler, getExternalGeneralEntities, getExternalParameterEntities, getfgDatatypeMessages, getfgImplementationMessages, getfgSchemaMessages, getfgXMLMessages, getfLocale, getLoadDTDGrammar, getLoadExternalDTD, getLocator, getNamespaces, getNormalizeContents, getValidation, getValidationDynamic, getValidationSchema, getValidationSchemaFullChecking, getValidationWarnOnDuplicateAttdef, getValidationWarnOnUndeclaredElemdef, getXMLString, initHandlers, isFeatureRecognized, isPropertyRecognized, parse, parse, parseSome, parseSomeSetup, reportError, setAllowJavaEncodings, setContinueAfterFatalError, setEntityResolver, setErrorHandler, setExternalGeneralEntities, setExternalNoNamespaceSchemaLocation, setExternalParameterEntities, setExternalSchemaLocation, setLoadDTDGrammar, setLoadExternalDTD, setLocale, setNamespaces, setNormalizeAttributeValues, setNormalizeContents, setReaderFactory, setValidation, setValidationDynamic, setValidationSchema, setValidationSchemaFullChecking, setValidationWarnOnDuplicateAttdef, setValidationWarnOnUndeclaredElemdef`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### DEFAULT_DOCUMENT_CLASS_NAME

    public static final java.lang.String DEFAULT_DOCUMENT_CLASS_NAME

  Default programmatic document class name (org.apache.xerces.dom.DocumentImpl).

### DEFAULT_DEFERRED_DOCUMENT_CLASS_NAME

    public static final java.lang.String DEFAULT_DEFERRED_DOCUMENT_CLASS_NAME

  Default deferred document class name (org.apache.xerces.dom.DeferredDocumentImpl).

### fDocument

    protected Document fDocument

### fDeferredDocumentImpl

    protected DeferredDocumentImpl fDeferredDocumentImpl

### fDocumentIndex

    protected int fDocumentIndex

### fDocumentTypeIndex

    protected int fDocumentTypeIndex

### fCurrentNodeIndex

    protected int fCurrentNodeIndex

### fCurrentEntityName

    protected int fCurrentEntityName

### fCurrentEntityNode

    protected int fCurrentEntityNode

### fDocumentImpl

    protected DocumentImpl fDocumentImpl

### fDocumentType

    protected DocumentType fDocumentType

### fCurrentElementNode

    protected Node fCurrentElementNode

### fInDTD

    protected boolean fInDTD

### fWithinElement

    protected boolean fWithinElement

### fInCDATA

    protected boolean fInCDATA

### fAmpIndex

    protected int fAmpIndex

### fLtIndex

    protected int fLtIndex

### fGtIndex

    protected int fGtIndex

### fAposIndex

    protected int fAposIndex

### fQuotIndex

    protected int fQuotIndex

Constructor Detail

### DOMParser

    public DOMParser()

  Default constructor.

Method Detail

### getDocument

    public Document getDocument()

  Returns the document.

### getFeaturesRecognized

    public java.lang.String[] getFeaturesRecognized()

  Returns a list of features that this parser recognizes. This method will never return null; if no features are recognized, this method will return a zero length array.
  Overrides:
    getFeaturesRecognized in class XMLParser
  See Also:
    `XMLParser.isFeatureRecognized(java.lang.String)`, `setFeature(java.lang.String, boolean)`, `getFeature(java.lang.String)`

### getPropertiesRecognized

    public java.lang.String[] getPropertiesRecognized()

  Returns a list of properties that this parser recognizes. This method will never return null; if no properties are recognized, this method will return a zero length array.
  Overrides:
    getPropertiesRecognized in class XMLParser
  See Also:
    `XMLParser.isPropertyRecognized(java.lang.String)`, `setProperty(java.lang.String, java.lang.Object)`, `getProperty(java.lang.String)`

### reset

    public void reset()
               throws java.lang.Exception

  Resets the parser.
  Overrides:
    reset in class XMLParser

### resetOrCopy

    public void resetOrCopy()
                     throws java.lang.Exception

  Resets or copies the parser.
  Overrides:
    resetOrCopy in class XMLParser

### init

    protected void init()

  Initializes the parser to a pre-parse state. This method is called between calls to `parse()`.

### setDeferNodeExpansion

    protected void setDeferNodeExpansion(boolean deferNodeExpansion)
                                  throws SAXNotRecognizedException,
                                         SAXNotSupportedException

  This method sets whether the expansion of the nodes in the default DOM implementation are deferred.
  See Also:
    `getDeferNodeExpansion()`, `setDocumentClassName(java.lang.String)`

### getDeferNodeExpansion

    protected boolean getDeferNodeExpansion()
                                     throws SAXNotRecognizedException,
                                            SAXNotSupportedException

  Returns true if the expansion of the nodes in the default DOM implementation are deferred.
  See Also:
    `setDeferNodeExpansion(boolean)`

### setCreateEntityReferenceNodes

    protected void setCreateEntityReferenceNodes(boolean create)
                                          throws SAXNotRecognizedException,
                                                 SAXNotSupportedException

  This feature determines whether entity references within the document are included in the document tree as EntityReference nodes.

  Note: The children of the entity reference are always added to the document. This feature only affects whether an EntityReference node is also included as the parent of the entity reference children.

  Parameters:
    `create` - True to create entity reference nodes; false to only insert the entity reference children.
  See Also:
    `getCreateEntityReferenceNodes()`

### getCreateEntityReferenceNodes

    public boolean getCreateEntityReferenceNodes()
                                          throws SAXNotRecognizedException,
                                                 SAXNotSupportedException

  Returns true if entity references within the document are included in the document tree as EntityReference nodes.
  See Also:
    `setCreateEntityReferenceNodes(boolean)`

### setIncludeIgnorableWhitespace

    public void setIncludeIgnorableWhitespace(boolean include)
                                       throws SAXNotRecognizedException,
                                              SAXNotSupportedException

  This feature determines whether text nodes that can be considered "ignorable whitespace" are included in the DOM tree.

  Note: The only way that the parser can determine if text is ignorable is by reading the associated grammar and having a content model for the document. When ignorable whitespace text nodes *are* included in the DOM tree, they will be flagged as ignorable. The ignorable flag can be queried by calling the TextImpl#isIgnorableWhitespace():boolean method.

  Parameters:
    `include` - True to include ignorable whitespace text nodes; false to not include ignorable whitespace text nodes.
  See Also:
    `getIncludeIgnorableWhitespace()`

### getIncludeIgnorableWhitespace

    public boolean getIncludeIgnorableWhitespace()
                                          throws SAXNotRecognizedException,
                                                 SAXNotSupportedException

  Returns true if ignorable whitespace text nodes are included in the DOM tree.
  See Also:
    `setIncludeIgnorableWhitespace(boolean)`

### setDocumentClassName

    protected void setDocumentClassName(java.lang.String documentClassName)
                                 throws SAXNotRecognizedException,
                                        SAXNotSupportedException

  This method allows the programmer to decide which document factory to use when constructing the DOM tree. However, doing so will lose the functionality of the default factory. Also, a document class other than the default will lose the ability to defer node expansion on the DOM tree produced.
  Parameters:
    `documentClassName` - The fully qualified class name of the document factory to use when constructing the DOM tree.
  See Also:
    `getDocumentClassName()`, `setDeferNodeExpansion(boolean)`, `DEFAULT_DOCUMENT_CLASS_NAME`

### getDocumentClassName

    protected java.lang.String getDocumentClassName()
                                             throws SAXNotRecognizedException,
                                                    SAXNotSupportedException

  Returns the fully qualified class name of the document factory used when constructing the DOM tree.
  See Also:
    `setDocumentClassName(java.lang.String)`

### getCurrentElementNode

    protected Element getCurrentElementNode()
                                     throws SAXNotRecognizedException,
                                            SAXNotSupportedException

  Returns the current element node.

  Note: This method is not supported when the "deferNodeExpansion" property is set to true and the document factory is set to the default factory.

### setFeature

    public void setFeature(java.lang.String featureId,
                           boolean state)
                    throws SAXNotRecognizedException,
                           SAXNotSupportedException

  Set the state of any feature in a SAX2 parser. The parser might not recognize the feature, and if it does recognize it, it might not be able to fulfill the request.
  Overrides:
    setFeature in class XMLParser
  Parameters:
    `featureId` - The unique identifier (URI) of the feature.
    `state` - The requested state of the feature (true or false).
  Throws:
    SAXNotRecognizedException - If the requested feature is not known.
    SAXNotSupportedException - If the requested feature is known, but the requested state is not supported.

### getFeature

    public boolean getFeature(java.lang.String featureId)
                       throws SAXNotRecognizedException,
                              SAXNotSupportedException

  Query the current state of any feature in a SAX2 parser. The parser might not recognize the feature.
  Overrides:
    getFeature in class XMLParser
  Parameters:
    `featureId` - The unique identifier (URI) of the feature being set.
  Returns:
    The current state of the feature.
  Throws:
    SAXNotRecognizedException - If the requested feature is not known.

### setProperty

    public void setProperty(java.lang.String propertyId,
                            java.lang.Object value)
                     throws SAXNotRecognizedException,
                            SAXNotSupportedException

  Set the value of any property in a SAX2 parser. The parser might not recognize the property, and if it does recognize it, it might not support the requested value.
  Overrides:
    setProperty in class XMLParser
  Parameters:
    `propertyId` - The unique identifier (URI) of the property being set.
    `Object` - The value to which the property is being set.
  Throws:
    SAXNotRecognizedException - If the requested property is not known.
    SAXNotSupportedException - If the requested property is known, but the requested value is not supported.

### getProperty

    public java.lang.Object getProperty(java.lang.String propertyId)
                                 throws SAXNotRecognizedException,
                                        SAXNotSupportedException

  Return the current value of a property in a SAX2 parser. The parser might not recognize the property.
  Overrides:
    getProperty in class XMLParser
  Parameters:
    `propertyId` - The unique identifier (URI) of the property being set.
  Returns:
    The current value of the property.
  Throws:
    SAXNotRecognizedException - If the requested property is not known.
  See Also:
    `Configurable#getProperty`

### startDocument

    public void startDocument()

  Start document.
  Specified by:
    startDocument in interface XMLDocumentHandler
  Tags copied from interface: XMLDocumentHandler
  Throws:
    java.lang.Exception -

### endDocument

    public void endDocument()
                     throws java.lang.Exception

  End document.
  Specified by:
    endDocument in interface XMLDocumentHandler
  Tags copied from interface: XMLDocumentHandler
  Throws:
    java.lang.Exception -

### xmlDecl

    public void xmlDecl(int versionIndex,
                        int encodingIndex,
                        int standaloneIndex)
                 throws java.lang.Exception

  XML declaration.
  Specified by:
    xmlDecl in interface XMLDocumentHandler
  Tags copied from interface: XMLDocumentHandler
  Parameters:
    `version` - the handle in the string pool for the version number
    `encoding` - the handle in the string pool for the encoding
    `standalong` - the handle in the string pool for the standalone value
  Throws:
    java.lang.Exception -

### textDecl

    public void textDecl(int versionIndex,
                         int encodingIndex)
                  throws java.lang.Exception

  Text declaration. added DOM Level 3 WD support - experimental
  Specified by:
    textDecl in interface XMLDocumentHandler
  Tags copied from interface: XMLDocumentHandler
  Throws:
    java.lang.Exception -

### startNamespaceDeclScope

    public void startNamespaceDeclScope(int prefix,
                                        int uri)
                                 throws java.lang.Exception

  Report the start of the scope of a namespace declaration.
  Specified by:
    startNamespaceDeclScope in interface XMLDocumentHandler
  Tags copied from interface: XMLDocumentHandler
  Parameters:
    `prefix` - string pool index of the namespace prefix being declared
    `uri` - string pool index of the namespace uri begin bound
    `java.lang.Exception` -

### endNamespaceDeclScope

    public void endNamespaceDeclScope(int prefix)
                               throws java.lang.Exception

  Report the end of the scope of a namespace declaration.
  Specified by:
    endNamespaceDeclScope in interface XMLDocumentHandler
  Tags copied from interface: XMLDocumentHandler
  Parameters:
    `prefix` - string pool index of the namespace prefix being declared
  Throws:
    java.lang.Exception -

### startElement

    public void startElement(QName elementQName,
                             XMLAttrList xmlAttrList,
                             int attrListIndex)
                      throws java.lang.Exception

  Start element.
  Specified by:
    startElement in interface XMLDocumentHandler
  Tags copied from interface: XMLDocumentHandler
  Parameters:
    `elementType` - element handle for the element being scanned
    `attrList` - attrList containing the attributes of the element
    `attrListHandle` - handle into attrList. Allows attributes to be retreived.
  Throws:
    java.lang.Exception -

### endElement

    public void endElement(QName elementQName)
                    throws java.lang.Exception

  End element.
  Specified by:
    endElement in interface XMLDocumentHandler
  Tags copied from interface: XMLDocumentHandler
  Parameters:
    `elementType` - element handle for the element being scanned
  Throws:
    java.lang.Exception -

### characters

    public void characters(int dataIndex)
                    throws java.lang.Exception

  Characters.
  Specified by:
    characters in interface XMLDocumentHandler
  Tags copied from interface: XMLDocumentHandler
  Parameters:
    `data` - string pool index of the characters that were scanned
  Throws:
    java.lang.Exception -

### ignorableWhitespace

    public void ignorableWhitespace(int dataIndex)
                             throws java.lang.Exception

  Ignorable whitespace.
  Specified by:
    ignorableWhitespace in interface XMLDocumentHandler
  Tags copied from interface: XMLDocumentHandler
  Parameters:
    `data` - string pool index of ignorable whitespace
  Throws:
    java.lang.Exception -

### processingInstruction

    public void processingInstruction(int targetIndex,
                                      int dataIndex)
                               throws java.lang.Exception

  Processing instruction.
  Specified by:
    processingInstruction in interface XMLDocumentHandler
  Tags copied from interface: XMLDocumentHandler
  Parameters:
    `target` - string pool index of the PI target
    `data` - string pool index of the PI data
  Throws:
    java.lang.Exception -

### comment

    public void comment(int dataIndex)
                 throws java.lang.Exception

  Comment.
  Specified by:
    comment in interface XMLDocumentHandler
  Tags copied from interface: XMLDocumentHandler
  Parameters:
    `comment` - string pool index of the comment text
  Throws:
    java.lang.Exception -

### characters

    public void characters(char[] ch,
                           int start,
                           int length)
                    throws java.lang.Exception

  Description copied from interface: XMLDocumentHandler
  callback for characters.
  Specified by:
    characters in interface XMLDocumentHandler
  Tags copied from interface: XMLDocumentHandler
  Parameters:
    `ch` - character array containing the characters that were scanned
    `start` - offset in ch where scanned characters begin
    `length` - length of scanned characters in ch
  Throws:
    java.lang.Exception -

### ignorableWhitespace

    public void ignorableWhitespace(char[] ch,
                                    int start,
                                    int length)
                             throws java.lang.Exception

  Not called.
  Specified by:
    ignorableWhitespace in interface XMLDocumentHandler
  Tags copied from interface: XMLDocumentHandler
  Parameters:
    `ch` - character array containing the whitespace that was scanned
    `start` - offset in ch where scanned whitespace begins
    `length` - length of scanned whitespace in ch
  Throws:
    java.lang.Exception -

### startCDATA

    public void startCDATA()
                    throws java.lang.Exception

  Start CDATA section.
  Specified by:
    startCDATA in interface XMLDocumentHandler
  Tags copied from interface: XMLDocumentHandler
  Throws:
    java.lang.Exception -

### endCDATA

    public void endCDATA()
                  throws java.lang.Exception

  End CDATA section.
  Specified by:
    endCDATA in interface XMLDocumentHandler
  Tags copied from interface: XMLDocumentHandler
  Throws:
    java.lang.Exception -

### startEntityReference

    public void startEntityReference(int entityName,
                                     int entityType,
                                     int entityContext)
                              throws java.lang.Exception

  Start entity reference.
  Specified by:
    startEntityReference in interface XMLDocumentHandler
  Tags copied from interface: XMLDocumentHandler
  Parameters:
    `entityName` - string pool index of the entity name
    `entityType` - the XMLEntityHandler.ENTITYTYPE_* type
    `entityContext` - the XMLEntityHandler.ENTITYREF_* type for where the entity reference appears
  Throws:
    java.lang.Exception -
  See Also:
    `XMLEntityHandler`, `XMLEntityHandler`

### endEntityReference

    public void endEntityReference(int entityName,
                                   int entityType,
                                   int entityContext)
                            throws java.lang.Exception

  End entity reference.
  Specified by:
    endEntityReference in interface XMLDocumentHandler
  Tags copied from interface: XMLDocumentHandler
  Parameters:
    `entityName` - string pool index of the entity anem
    `entityType` - the XMLEntityHandler.ENTITYTYPE_* type
    `entityContext` - the XMLEntityHandler.ENTITYREF_* type for where the entity reference appears
  Throws:
    java.lang.Exception -
  See Also:
    `XMLEntityHandler`, `XMLEntityHandler`

### startDTD

    public void startDTD(QName rootElement,
                         int publicId,
                         int systemId)
                  throws java.lang.Exception

  This function will be called when a <!DOCTYPE...> declaration is encountered.
  Tags copied from interface: XMLDocumentHandler.DTDHandler
  Parameters:
    `rootElementType` - element handle for the root element of the document
    `publicId` - string pool index of the DTD's public ID
    `systemId` - string pool index of the DTD's system ID
  Throws:
    java.lang.Exception -

### internalSubset

    public void internalSubset(int internalSubset)

  Supports DOM Level 2 internalSubset additions. Called when the internal subset is completely scanned.

### endDTD

    public void endDTD()
                throws java.lang.Exception

  This function will be called at the end of the DTD.

### elementDecl

    public void elementDecl(QName elementDecl,
                            int contentSpecType,
                            int contentSpecIndex,
                            XMLContentSpec.Provider contentSpecProvider)
                     throws java.lang.Exception

  <!ELEMENT Name contentspec>
  Tags copied from interface: XMLDocumentHandler.DTDHandler
  Parameters:
    `elementType` - element handle of the element being declared
    `contentSpec` - contentSpec for the element being declared
  Throws:
    java.lang.Exception -
  See Also:
    `XMLContentSpec`

### attlistDecl

    public void attlistDecl(QName elementDecl,
                            QName attributeDecl,
                            int attType,
                            boolean attList,
                            java.lang.String enumString,
                            int attDefaultType,
                            int attDefaultValue)
                     throws java.lang.Exception

  <!ATTLIST Name AttDef>
  Tags copied from interface: XMLDocumentHandler.DTDHandler
  Parameters:
    `elementType` - element handle for the attribute's element
    `attrName` - string pool index of the attribute name
    `attType` - type of attribute
    `enumString` - String representing the values of the enumeration, if the attribute is of enumerated type, or null if it is not.
    `attDefaultType` - an integer value denoting the DefaultDecl value
    `attDefaultValue` - string pool index of this attribute's default value or -1 if there is no defaultvalue
  Throws:
    java.lang.Exception -

### internalPEDecl

    public void internalPEDecl(int entityNameIndex,
                               int entityValueIndex)
                        throws java.lang.Exception

  <!ENTITY % Name EntityValue> (internal)
  Tags copied from interface: XMLDocumentHandler.DTDHandler
  Parameters:
    `entityName` - string pool index of the entity name
    `entityValue` - string pool index of the entity replacement text
  Throws:
    java.lang.Exception -

### externalPEDecl

    public void externalPEDecl(int entityNameIndex,
                               int publicIdIndex,
                               int systemIdIndex)
                        throws java.lang.Exception

  <!ENTITY % Name ExternalID> (external)
  Tags copied from interface: XMLDocumentHandler.DTDHandler
  Parameters:
    `entityName` - string pool index of the entity name
    `publicId` - string pool index of the entity's public id.
    `systemId` - string pool index of the entity's system id.
  Throws:
    java.lang.Exception -

### internalEntityDecl

    public void internalEntityDecl(int entityNameIndex,
                                   int entityValueIndex)
                            throws java.lang.Exception

  <!ENTITY Name EntityValue> (internal)
  Tags copied from interface: XMLDocumentHandler.DTDHandler
  Parameters:
    `entityName` - string pool index of the entity name
    `entityValue` - string pool index of the entity replacement text
  Throws:
    java.lang.Exception -

### externalEntityDecl

    public void externalEntityDecl(int entityNameIndex,
                                   int publicIdIndex,
                                   int systemIdIndex)
                            throws java.lang.Exception

  <!ENTITY Name ExternalID> (external)
  Tags copied from interface: XMLDocumentHandler.DTDHandler
  Parameters:
    `entityName` - string pool index of the entity name
    `publicId` - string pool index of the entity's public id.
    `systemId` - string pool index of the entity's system id.
  Throws:
    java.lang.Exception -

### unparsedEntityDecl

    public void unparsedEntityDecl(int entityNameIndex,
                                   int publicIdIndex,
                                   int systemIdIndex,
                                   int notationNameIndex)
                            throws java.lang.Exception

  <!ENTITY Name ExternalID NDataDecl> (unparsed)
  Tags copied from interface: XMLDocumentHandler.DTDHandler
  Parameters:
    `entityName` - string pool index of the entity name
    `publicId` - string pool index of the entity's public id.
    `systemId` - string pool index of the entity's system id.
    `notationName` - string pool index of the notation name.
  Throws:
    java.lang.Exception -

### notationDecl

    public void notationDecl(int notationNameIndex,
                             int publicIdIndex,
                             int systemIdIndex)
                      throws java.lang.Exception

  <!NOTATION Name ExternalId>
  Tags copied from interface: XMLDocumentHandler.DTDHandler
  Parameters:
    `notationName` - string pool index of the notation name
    `publicId` - string pool index of the notation's public id.
    `systemId` - string pool index of the notation's system id.
  Throws:
    java.lang.Exception -

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 1999-2001 Apache XML Project. All Rights Reserved.