Class DTD

  • All Implemented Interfaces:
    Element

    public class DTD
    extends XMLPseudoTag
    Document type declaration in XML file. For example, <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">.
    • Constructor Detail

      • DTD

        public DTD​(java.lang.String name,
                   java.lang.String publicId,
                   java.lang.String systemId)
        Creates a new instance of Doctype
    • Method Detail

      • getPublicId

        public java.lang.String getPublicId()
        Returns Public ID of this DTD.
      • getSystemId

        public java.lang.String getSystemId()
        Returns System ID of this DTD.
      • addEntity

        public void addEntity​(Entity entity)
      • toOriginal

        public java.lang.String toOriginal()
        Returns the DTD in its original form as it was in original document.
        Specified by:
        toOriginal in interface Element
        Specified by:
        toOriginal in class Tag