Interface XMQEntityDecl

All Superinterfaces:
XMQNode

public interface XMQEntityDecl extends XMQNode
An entity declaration inside a dtd, eg <!ENTITY year "2026">. An entity is never expanded implicitly: in a parsed document the reference appears as a XMQNode of type ENTITY_REF with the entity name, and this declaration holds the replacement text (content(), expanded at parse time within the libxml2 limits) and the value as written (orig()).
  • Method Details

    • etype

      int etype()
      Returns the entity type, a libxml2 entity type number: 1 internal general, 2 external general parsed, 3 external general unparsed, 4 internal parameter, 5 external parameter and 6 internal predefined.
      Returns:
      The entity type number.
    • orig

      String orig()
      Returns the value as written in the source, or null if the entity was predefined and not written.
      Returns:
      The original literal or null.
    • externalId

      String externalId()
      Returns the public id of the entity.
      Returns:
      The external id or null.
    • systemId

      String systemId()
      Returns the system id of the entity.
      Returns:
      The system id or null.