XmlNode.AsXmlDeclaration() Method

Version: Available or changed with runtime version 1.0.

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

Syntax

XmlDeclaration :=   XmlNode.AsXmlDeclaration()

Parameters

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

Return Value

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

XmlNode Data Type
Get Started with AL
Developing Extensions