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

Returns

Success
Name of parent name.
Failure
{}

Example

::hwat::xml:: GetParentNameFromElement $str_myChild

Comments

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