com.aspose.html.dom

Class ProcessingInstruction

  • All Implemented Interfaces:
    IEventTarget, IXPathNSResolver, com.aspose.html.internal.ms.System.IDisposable


    @DOMObjectAttribute
     @DOMNameAttribute(name="ProcessingInstruction")
    public class ProcessingInstruction
    extends com.aspose.html.dom.CharacterDataDOM

    The ProcessingInstruction represents a "processing instruction", used in XML as a way to keep processor-specific information in the text of the document.

    • Constructor Detail

      • ProcessingInstruction

        public ProcessingInstruction(String target,
                                     String data,
                                     Document doc)

        Initializes a new instance of the ProcessingInstruction class.

        Parameters:
        target - The target.
        data - The instruction data.
        doc - The document.
    • Method Detail

      • getNodeName

        public String getNodeName()

        The name of this node, depending on its type.

        Value: The name of the node.
        Specified by:
        getNodeName in class Node
      • getNodeType

        public int getNodeType()

        A code representing the type of the underlying object.

        Value: The type of the node.
        Specified by:
        getNodeType in class Node
      • getNodeValue

        public String getNodeValue()

        The value of this node, depending on its type.

        Value: The node value.
        Overrides:
        getNodeValue in class Node
      • setNodeValue

        public void setNodeValue(String value)

        The value of this node, depending on its type.

        Value: The node value.
        Overrides:
        setNodeValue in class Node
      • getTextContent

        public String getTextContent()

        This attribute returns the text content of this node and its descendants. When it is defined to be null, setting it has no effect. On setting, any possible children this node may have are removed and, if it the new string is not empty or null, replaced by a single Text node containing the string this attribute is set to.

        Value: The content of the text.
        Overrides:
        getTextContent in class Node
      • setTextContent

        public void setTextContent(String value)

        This attribute returns the text content of this node and its descendants. When it is defined to be null, setting it has no effect. On setting, any possible children this node may have are removed and, if it the new string is not empty or null, replaced by a single Text node containing the string this attribute is set to.

        Value: The content of the text.
        Overrides:
        setTextContent in class Node