tdom::get_node_object (public)

 tdom::get_node_object parent_node_object [ args... ]

Defined in packages/acs-tcl/tcl/tdom-procs.tcl

Returns a tDOM object to the args given If the tDOM object doesn't exist or the value is null, return null

    Example -----------------------------------------------------
    XML:     <experiment>
                 <experimenter>
                     <first-name>Annabelle Lee</first-name>
                     <last-name>Poe</last-name>
                 </experimenter>
             </experiment>
    Params:  parent_node_object=$tdom_experiment_object
             args=experimenter experimenter_two
    Returns: TDOM object for experimenter node
    End Example -------------------------------------------------
    

Parameters:
parent_node_object (required)

Partial Call Graph (max 5 caller/called nodes):
%3

Testcases:
No testcase defined.
Source code:
    # Do a loop for the args. The first non null result is returned
    set node_object ""
    foreach node_name $args {
        catch {set node_object [$parent_node_object getElementsByTagName "$node_name"]}
        if {$node_object ne "" } {
            return $node_object
        }
    }

    return $node_object
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: