HyperWorks Tools

::hwat::xml::GetParentNameFromElement

::hwat::xml::GetParentNameFromElement

Previous topic Next topic No expanding text in this topic  

::hwat::xml::GetParentNameFromElement

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

NAME

::hwat::xml::GetParentNameFromElement - Get the parent "name" attribute from the element name of the selected child element.

 

SYNTAX

::hwat::xml::GetParentNameFromElement str_childElement

 

ARGUMENTS

str_childElement

[optional] The child name whose parent needs finding.  If not given, the current active name will be taken as the child and it’s parent will be reported.

 

RETURNS

Name of parent name if successful, "{}" otherwise.

 

EXAMPLE

::hwat::xml:: GetParentNameFromElement $str_myChild

 

Comments

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

 

See also

xml Functions