::hwat::xml::GetAttributeName
Retrieve the attribute at a given index for a given attribute list.
Syntax
::hwat::xml::GetAttributeName str_attrList n_index
Arguments
- str_attrList
- The interlaced list of attribute names and values.
- n_index
- The index of the attribute of interest. If not given, defaults to index of 0.
Returns
- Success
- Name of attribute in list.
- Failure
- {}
Example
::hwat::xml::GetAttributeName [list var1 0 var2 1 var3 2] 2
Comments
This can be a useful helper function for authoring your callbacks.