XmlNode.AsXmlElement() Method

Version: Available or changed with runtime version 1.0.

Converts the node to an XmlElement node. The operation will fail if the node is not an XmlElement.

Syntax

XmlElement :=   XmlNode.AsXmlElement()

Parameters

XmlNode
 Type: XmlNode
An instance of the XmlNode data type.

Return Value

XmlElement
 Type: XmlElement
An XmlElement value that references the current XmlNode.

See Also

XmlNode Data Type
Get Started with AL
Developing Extensions