category_tree::xml::import_from_file (public)

 category_tree::xml::import_from_file [ -site_wide ] file

Defined in packages/categories/tcl/category-xml-procs.tcl

Imports a category tree from a given file.

Switches:
-site_wide (optional, boolean)
Parameters:
file (required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_category_tree_import category_tree_import (test categories) category_tree::xml::import_from_file category_tree::xml::import_from_file test_category_tree_import->category_tree::xml::import_from_file category_tree::xml::import category_tree::xml::import (public) category_tree::xml::import_from_file->category_tree::xml::import tdom::xmlReadFile tdom::xmlReadFile category_tree::xml::import_from_file->tdom::xmlReadFile install::xml::action::load-categories install::xml::action::load-categories (public) install::xml::action::load-categories->category_tree::xml::import_from_file

Testcases:
category_tree_import
Source code:
    if {![file exists $file] || ![file readable $file]} {
        error {Cannot open file for reading}
    }

    return [import -site_wide=$site_wide_p [::tdom::xmlReadFile $file]]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: