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 Details

    • DTD

      public DTD(String name, @Nullable String publicId, @Nullable String systemId)
      Creates a new instance of Doctype
  • Method Details

    • getPublicId

      public @Nullable String getPublicId()
      Returns Public ID of this DTD.
    • getSystemId

      public @Nullable String getSystemId()
      Returns System ID of this DTD.
    • addEntity

      public void addEntity(Entity entity)
    • toOriginal

      public 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