@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.
Node.Flags
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, flags, nodeDocument, NOTATION_NODE, parent, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
EventMap
PropertyChanged, PropertyChangedDelegate
Constructor and Description |
---|
ProcessingInstruction(java.lang.String target,
java.lang.String data,
Document doc)
Initializes a new instance of the
ProcessingInstruction class. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNodeName()
The name of this node, depending on its type.
|
int |
getNodeType()
A code representing the type of the underlying object.
|
java.lang.String |
getNodeValue()
The value of this node, depending on its type.
|
java.lang.String |
getTarget()
The target of this processing instruction.
|
java.lang.String |
getTextContent()
This attribute returns the text content of this node and its descendants.
|
void |
setNodeValue(java.lang.String value)
The value of this node, depending on its type.
|
void |
setTextContent(java.lang.String value)
This attribute returns the text content of this node and its descendants.
|
appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData, toString
adoptNode, appendChild, cloneNode, deepClone, dispose, finalize, getAttributes, getBaseURI, getChildNodes, getChildNodesInternal, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getRegisteredObservers, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceAll, replaceChild, setLocalName, setNamespaceURI, setParentNode, setPrefix
addEventListener, addEventListener, addEventListener, addEventListener, dispatchEvent, dispose, removeEventListener, removeEventListener, removeEventListener
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
public ProcessingInstruction(java.lang.String target, java.lang.String data, Document doc)
Initializes a new instance of the ProcessingInstruction
class.
target
- The target.data
- The instruction data.doc
- The document.@DOMNameAttribute(name="target") public java.lang.String getTarget()
The target of this processing instruction.
Value: The target.public java.lang.String getNodeName()
The name of this node, depending on its type.
Value: The name of the node.getNodeName
in class Node
public int getNodeType()
A code representing the type of the underlying object.
Value: The type of the node.getNodeType
in class Node
public java.lang.String getNodeValue()
The value of this node, depending on its type.
Value: The node value.getNodeValue
in class Node
public void setNodeValue(java.lang.String value)
The value of this node, depending on its type.
Value: The node value.setNodeValue
in class Node
public java.lang.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.getTextContent
in class Node
public void setTextContent(java.lang.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.setTextContent
in class Node