Class XmlEntityRef

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

public class XmlEntityRef extends XmlNode
An entity reference, eg © The reference is kept as a node in the DOM, the entity is never expanded into the document.
  • Constructor Details

    • XmlEntityRef

      public XmlEntityRef(String name)
      Create an entity reference.
      Parameters:
      name - The entity name, eg copy for ©
  • 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.
    • entity

      public XmlEntityDecl entity()
      Find the declaration of the referenced entity in the document dtd.
      Returns:
      The declaration or null.