xml_parse (public)

 xml_parse [ -persist ] xml

Defined in packages/acs-tcl/tcl/30-xml-utils-procs.tcl

Parse a document and return a doc_id

Switches:
-persist
(boolean) (optional)
decides whether returned document object will be deleted when the connection is closed or will be kept in server memory
Parameters:
xml
Returns:
parsed document object handle

Partial Call Graph (max 5 caller/called nodes):
%3 test_files__check_xql_files files__check_xql_files (test acs-tcl) xml_parse xml_parse test_files__check_xql_files->xml_parse test_xml_get_child_node_content_by_path xml_get_child_node_content_by_path (test acs-tcl) test_xml_get_child_node_content_by_path->xml_parse test_xml_rpc_decode_value xml_rpc_decode_value (test xml-rpc) test_xml_rpc_decode_value->xml_parse test_xml_rpc_fault xml_rpc_fault (test xml-rpc) test_xml_rpc_fault->xml_parse test_xml_rpc_respond xml_rpc_respond (test xml-rpc) test_xml_rpc_respond->xml_parse dom dom xml_parse->dom aa_test::parse_install_file aa_test::parse_install_file (public) aa_test::parse_install_file->xml_parse aa_test::parse_test_file aa_test::parse_test_file (public) aa_test::parse_test_file->xml_parse apm_get_package_repository apm_get_package_repository (public) apm_get_package_repository->xml_parse apm_load_install_xml apm_load_install_xml (private) apm_load_install_xml->xml_parse apm_load_install_xml_file apm_load_install_xml_file (private) apm_load_install_xml_file->xml_parse

Testcases:
xml_get_child_node_content_by_path, files__check_xql_files, xml_rpc_fault, xml_rpc_decode_value, xml_rpc_respond
Source code:
    if {$persist_p} {
        return [dom parse -simple $xml]
    } else {
        dom parse -simple $xml doc
        return $doc
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: