apm_load_install_xml_file (private)

 apm_load_install_xml_file

Defined in packages/acs-bootstrap-installer/tcl/30-apm-load-procs.tcl

Loads any install.xml file and returns the root node. Returns the empty string if there is no install.xml file.

Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 ad_file ad_file (public) apm_install_xml_file_path apm_install_xml_file_path (private) xml_doc_get_first_node xml_doc_get_first_node (public) xml_parse xml_parse (public) apm_load_install_xml_file apm_load_install_xml_file apm_load_install_xml_file->ad_file apm_load_install_xml_file->apm_install_xml_file_path apm_load_install_xml_file->xml_doc_get_first_node apm_load_install_xml_file->xml_parse

Testcases:
No testcase defined.
Source code:
    set fn [apm_install_xml_file_path]
    # Abort if there is no install.xml file
    if { ![ad_file exists $fn] } {
        return ""
    }

    #ns_log notice "==== LOADING XML file: $fn"
    set file [open $fn]
    set root_node [xml_doc_get_first_node [xml_parse -persist [read $file]]]
    close $file

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