편집

다음을 통해 공유


XmlNode Data type

Version: Available or changed with runtime version 1.0.

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

Instance methods

The following methods are available on instances of the XmlNode 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.
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.
GetDocument(var XmlDocument) Gets the XmlDocument for this node.
GetParent(var XmlElement) Gets the parent XmlElement of this node.
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.
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.
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.

Get Started with AL
Developing Extensions