Skip to content

GetAttribute

Gets an attribute value on the current node.

1
myXml.GetAttribute(attributeName: string):string

Parameters

string attributeName
    The name of the attribute.

Remarks

Returns null if the attribute does not exist.

Basic Usage

1
var name = $Xml.GetAttribute('Name');