Skip to content

GetAttribute

Gets an attribute value on the current node.

1
myXml.GetAttribute(attributeName: string):string

Parameters

string attributeName
    Specifies the name of the attribute

Remarks

Returns null if attribute does not exist.

Basic Usage

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