HyperWorks Tools

::hwat::xml::GetAttributeName

::hwat::xml::GetAttributeName

Previous topic Next topic No expanding text in this topic  

::hwat::xml::GetAttributeName

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

NAME

::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

[optional] The index of the attribute of interest.  If not given, defaults to index of 0.

 

RETURNS

Name of attribute in list if successful, "{}" otherwise.

 

EXAMPLE

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

 

Comments

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

 

See also

xml Functions