apm_tag_value (private)

 apm_tag_value [ -default default ] root property_name

Defined in packages/acs-tcl/tcl/apm-xml-procs.tcl

Parses the XML element and returns the associated property name if it exists.

Switches:
-default
(optional)
Parameters:
root
property_name

Partial Call Graph (max 5 caller/called nodes):
%3 apm_read_package_info_file apm_read_package_info_file (public) apm_tag_value apm_tag_value apm_read_package_info_file->apm_tag_value xml_node_get_content xml_node_get_content (public) apm_tag_value->xml_node_get_content xml_node_get_first_child_by_name xml_node_get_first_child_by_name (public) apm_tag_value->xml_node_get_first_child_by_name

Testcases:
No testcase defined.
Source code:
    ns_log Debug "apm_tag_value [$root nodeName] $property_name"
    set node [xml_node_get_first_child_by_name $root $property_name]

    if { $node ne "" } {
        return [xml_node_get_content $node]
    }
    ns_log Debug "apm_tag_value $root $property_name $default --> $default"
    return $default
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-tcl/tcl/apm-xml-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: