Interface XmlProcessingInstruction


  • public interface XmlProcessingInstruction
    Represents Processing Instruction Information Item . There is a processing instruction information item for each processing instruction in the document. The XML declaration and text declarations for external parsed entities are not considered processing instructions.
    Version:
    $Revision: 1.3 $
    Author:
    Aleksander Slominski
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getBaseUri()
      The base URI of the PI.
      String getContent()
      A string representing the content of the processing instruction, excluding the target and any white space immediately following it.
      XmlNotation getNotation()
      The notation information item named by the target.
      XmlContainer getParent()
      The document, element, or document type definition information item which contains this information item in its [children] property.
      String getTarget()
      A string representing the target part of the processing instruction (an XML name).
    • Method Detail

      • getTarget

        String getTarget()
        A string representing the target part of the processing instruction (an XML name).
      • getContent

        String getContent()
        A string representing the content of the processing instruction, excluding the target and any white space immediately following it. If there is no such content, the value of this property will be an empty string.
      • getBaseUri

        String getBaseUri()
        The base URI of the PI. Note that if an infoset is serialized as an XML document, it will not be possible to preserve the base URI of any PI that originally appeared at the top level of an external entity, since there is no syntax for PIs corresponding to the xml:base attribute on elements.
      • getNotation

        XmlNotation getNotation()
        The notation information item named by the target. If there is no declaration for a notation with that name, this property has no value. If no declaration has been read, but the [all declarations processed] property of the document information item is false (so there may be an unread declaration), then the value of this property is unknown.
      • getParent

        XmlContainer getParent()
        The document, element, or document type definition information item which contains this information item in its [children] property.