public class SaplingProcessingInstruction extends SaplingNode
| Constructor and Description |
|---|
SaplingProcessingInstruction(java.lang.String name,
java.lang.String value)
Construct a sapling processing-instruction node with a given name and string value
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Get the name of the processing instruction node
|
int |
getNodeKind()
Get the kind of node (document, element, text, comment, or processing instruction)
|
java.lang.String |
getStringValue()
Get the string value of the processing instruction node
|
protected void |
sendTo(Receiver receiver)
Send a sequence of events representing this node to a supplied Receiver
|
public SaplingProcessingInstruction(java.lang.String name,
java.lang.String value)
name - the name of the processing-instruction node (also called the "target").
This should be an NCName; but this is not checked.value - the string value of the processing-instruction node (also called the "data").
This should not start with an initial space,
and it should not contain the substring "?>", but this is not checked.java.lang.NullPointerException - if either name or value is nullpublic java.lang.String getName()
public java.lang.String getStringValue()
public int getNodeKind()
SaplingNodegetNodeKind in class SaplingNodeType.ELEMENT for an element node.protected void sendTo(Receiver receiver) throws XPathException
SaplingNodesendTo in class SaplingNodereceiver - the receiver to which the events are to be sentXPathException - if the receiver throws an exceptionCopyright (c) 2004-2020 Saxonica Limited.