XmlNode Data Type

Represents a XML node which can either be for instance an XML attribute, an XML element or a XML document.

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

Method name Description
IsXmlAttribute() Gets a value indicating whether this node is an XmlAttribute.
IsXmlCData() Gets a value indicating whether this node is an XmlCData.
IsXmlComment() Gets a value indicating whether this node is an XmlComment.
IsXmlDeclaration() Gets a value indicating whether this node is an XmlDeclaration.
IsXmlDocument() Gets a value indicating whether this node is an XmlDocument.
IsXmlDocumentType() Gets a value indicating whether this node is an XmlDocumentType.
IsXmlElement() Gets a value indicating whether this node is an XmlElement.
IsXmlProcessingInstruction() Gets a value indicating whether this node is an XmlProcessingInstruction.
IsXmlText() Gets a value indicating whether this node is an XmlText.
GetParent(var XmlElement) Gets the parent XmlElement of this node.
GetDocument(var XmlDocument) Gets the XmlDocument for this node.
AddAfterSelf(Any,...) Adds the specified content immediately after this node.
AddBeforeSelf(Any,...) Adds the specified content immediately before this node.
ReplaceWith(Any,...) Replaces this node with the specified content.
Remove() Removes this node from its parent element.
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.
SelectSingleNode(String, var XmlNode) Selects the first XmlNode that matches the XPath expression.
SelectSingleNode(String, XmlNamespaceManager, var XmlNode) Selects the first XmlNode that matches the XPath expression.
SelectNodes(String, var XmlNodeList) Selects a list of nodes matching the XPath expression.
SelectNodes(String, XmlNamespaceManager, var XmlNodeList) Selects a list of nodes matching the XPath expression.
AsXmlAttribute() Converts the node to an XmlAttribute node. The operation will fail if the node is not an XmlAttribute.
AsXmlCData() Converts the node to an XmlCData node. The operation will fail if the node is not an XmlCData.
AsXmlComment() Converts the node to an XmlComment node. The operation will fail if the node is not an XmlComment.
AsXmlDeclaration() Converts the node to an XmlDeclaration node. The operation will fail if the node is not an XmlDeclaration.
AsXmlDocument() Converts the node to an XmlDocument node. The operation will fail if the node is not an XmlDocument.
AsXmlDocumentType() Converts the node to an XmlDocumentType node. The operation will fail if the node is not an XmlDocumentType.
AsXmlElement() Converts the node to an XmlElement node. The operation will fail if the node is not an XmlElement.
AsXmlProcessingInstruction() Converts the node to an XmlProcessingInstruction node. The operation will fail if the node is not an XmlProcessingInstruction.
AsXmlText() Converts the node to an XmlText node. The operation will fail if the node is not an XmlText.

See Also

Getting Started with AL
Developing Extensions