Class PIOverNodeInfo

  • All Implemented Interfaces:
    org.w3c.dom.Node, org.w3c.dom.ProcessingInstruction

    public class PIOverNodeInfo
    extends NodeOverNodeInfo
    implements org.w3c.dom.ProcessingInstruction
    This class is an implementation of the DOM ProcessingInstruction interface that wraps a Saxon NodeInfo representation of a text or comment node.
    • Constructor Detail

      • PIOverNodeInfo

        public PIOverNodeInfo()
    • Method Detail

      • getTarget

        public java.lang.String getTarget()
        The target of this processing instruction. XML defines this as being the first token following the markup that begins the processing instruction.
        Specified by:
        getTarget in interface org.w3c.dom.ProcessingInstruction
      • getData

        public java.lang.String getData()
        The content of this processing instruction. This is from the first non white space character after the target to the character immediately preceding the ?>.
        Specified by:
        getData in interface org.w3c.dom.ProcessingInstruction
      • setData

        public void setData​(java.lang.String data)
                     throws org.w3c.dom.DOMException
        The content of this processing instruction. This is from the first non white space character after the target to the character immediately preceding the ?>.
        Specified by:
        setData in interface org.w3c.dom.ProcessingInstruction
        Throws:
        org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.