Class XmlDtdDecl

java.lang.Object
org.libxmq.imp.xml.XmlNode
org.libxmq.imp.xml.XmlDtdDecl
All Implemented Interfaces:
XMQNode

public class XmlDtdDecl extends XmlNode
An element, attribute list or notation declaration in a dtd. The declaration is stored as normalized source text, eg <!ELEMENT a (b|c)*>
  • Constructor Details

    • XmlDtdDecl

      public XmlDtdDecl(XMQNodeType type, String name, String text)
      Create a declaration.
      Parameters:
      type - ELEMENT_DECL, ATTRIBUTE_DECL, NOTATION_DECL or PE_REF (text %name;).
      name - The declared name.
      text - The full normalized declaration text.
  • Method Details

    • type

      public XMQNodeType type()
      Description copied from class: XmlNode
      Returns the type of this node.
      Specified by:
      type in interface XMQNode
      Specified by:
      type in class XmlNode
      Returns:
      The node type.
    • text

      public String text()
      Returns the declaration text.
      Returns:
      The declaration, eg <!ELEMENT a EMPTY>