::hwat::xml::GetAttributeValueByName

Retrieve the attribute value by attribute name for a given attribute list.

Syntax

::hwat::xml::GetAttributeValueByName str_attrList str_name

Arguments

str_attrList
The interlaced list of attribute names and values.
str_name
The name of the attribute of interest.

Returns

Success
Value of attribute in list.
Failure
{}

Example

::hwat::xml::GetAttributeValueByName [list var1 0 var2 1 var3 2] var3

Comments

This can be a useful helper function for authoring your callbacks.