Interface DTDReader

    • Field Detail

      • PROPERTY

        static final String PROPERTY
        The name of the property used to look up this extension interface from a XMLStreamReader implementation.
    • Method Detail

      • getRootName

        String getRootName()
        Get the root name of the DTD, i.e. the name immediately following the DOCTYPE keyword.
        Returns:
        the root name; must not be null
        Throws:
        IllegalStateException - if the current event is not XMLStreamConstants.DTD
      • getPublicId

        String getPublicId()
        Get the public ID of the external subset.
        Returns:
        the public ID, or null if there is no external subset or no public ID has been specified for the external subset
        Throws:
        IllegalStateException - if the current event is not XMLStreamConstants.DTD