xmlrpc::create_context (private)

 xmlrpc::create_context context value

Defined in packages/xml-rpc/tcl/xml-rpc-procs.tcl

Return the value wrapped in appropriate context tags. If context is a list of items, then the result will be wrapped in multiple tags. Example:

    xmlrpc::create_context {param value} 78
    returns ==> "78"
    

Parameters:
context (required)
context to create
value (required)
character data
Returns:
string with value wrapped in context tags

Partial Call Graph (max 5 caller/called nodes):
%3 xmlrpc::construct xmlrpc::construct (private) xmlrpc::create_context xmlrpc::create_context xmlrpc::construct->xmlrpc::create_context

Testcases:
No testcase defined.
Source code:
    # reverse the list (algorithm from TCL Wiki)
    set r_context {}
    set i [llength $context]
    while {$i} {lappend r_context [lindex $context [incr i -1]]}

    set result "$value"
    foreach child_name $r_context {
        set result "<$child_name>$result</$child_name>"
    }

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