Attr Method
Returns the value of the specified attribute.
Syntax
public fun attr(attrName: String?): String?
Remarks
If the attribute does not exist, an empty string is returned if ErrorOnEmptyAttr is set to false, otherwise an exception is thrown.
Please refer to the XAttributes collection for more information.