public getAttribute(name as String) as String
Returns an element attribute value when this node is an element.
This Klyn compatibility shortcut lets parsed element lists be consumed without an explicit cast. Non-element nodes return an empty string.
| Parameter | Description |
|---|---|
name | Attribute qualified name. |
Attribute value, or empty string when absent or unsupported.
id = node.getAttribute("id")