XmlComment Data Type

Version: Available or changed with runtime version 1.0.

Represents an XML comment.

The following methods are available on the XmlComment data type.

Method name Description
Create(String) Creates an XmlComment node.

The following methods are available on instances of the XmlComment 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.
GetDocument(var XmlDocument) Gets the XmlDocument for this node.
GetParent(var XmlElement) Gets the parent XmlElement of this node.
Remove() Removes this node from its parent element.
ReplaceWith(Any,...) Replaces this node with the specified content.
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.
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.
Value([String]) Gets or sets the string value of this comment.
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

Getting Started with AL
Developing Extensions