XmlProcessingInstruction Data Type

Version: Available or changed with runtime version 1.0.

Represents a processing instruction, which XML defines to keep processor-specific information in the text of the document.

Static methods

The following methods are available on the XmlProcessingInstruction data type.

Method name Description
Create(Text, Text) Creates an XmlProcessingInstruction node.

Instance methods

The following methods are available on instances of the XmlProcessingInstruction data type.

Method name Description
AddAfterSelf(Any,...) Adds the specified content immediately after this node.
AddBeforeSelf(Any,...) Adds the specified content immediately before this node.
AsXmlNode() Converts the node to an XmlNode.
GetData(var Text) Gets the content of the processing instruction, excluding the target.
GetDocument(var XmlDocument) Gets the XmlDocument for this node.
GetParent(var XmlElement) Gets the parent XmlElement of this node.
GetTarget(var Text) Gets the target of the processing instruction.
Remove() Removes this node from its parent element.
ReplaceWith(Any,...) Replaces this node with the specified content.
SelectNodes(Text, var XmlNodeList) Selects a list of nodes matching the XPath expression.
SelectNodes(Text, XmlNamespaceManager, var XmlNodeList) Selects a list of nodes matching the XPath expression.
SelectSingleNode(Text, var XmlNode) Selects the first XmlNode that matches the XPath expression.
SelectSingleNode(Text, XmlNamespaceManager, var XmlNode) Selects the first XmlNode that matches the XPath expression.
SetData(Text) Sets the content of the processing instruction, excluding the target.
SetTarget(Text) Sets the target of the processing instruction.
WriteTo(OutStream) Serializes and saves the current node to the given variable.
WriteTo(XmlWriteOptions, OutStream) Serializes and saves the current node to the given variable.
WriteTo(var Text) Serializes and saves the current node to the given variable.
WriteTo(XmlWriteOptions, var Text) Serializes and saves the current node to the given variable.

See Also

Get Started with AL
Developing Extensions