tdom::xmlReadFile (private)

 tdom::xmlReadFile filename [ encodingString ]

Defined in packages/acs-tcl/tcl/tcllib-doc-procs.tcl

Read XML file content through tDOM's internal encoding-aware file helper. This implementation helper is not a public API.

Parameters:
filename (required)
XML file to read.
encodingString (optional)
Optional name of a caller variable receiving encoding information.
Returns:
File content read by the helper.

Partial Call Graph (max 5 caller/called nodes):
category_tree::xml::import_from_file category_tree::xml::import_from_file (public) tdom::xmlReadFile tdom::xmlReadFile category_tree::xml::import_from_file->tdom::xmlReadFile tdom::xmlOpenFileWorker tdom::xmlOpenFileWorker tdom::xmlReadFile->tdom::xmlOpenFileWorker

Testcases:
No testcase defined.
Source code:

    if {$encodingString != {}} {
        upvar $encodingString encString
    }
    
    set fd [xmlOpenFileWorker $filename encString 0 1]
    set data [read $fd [file size $filename]]
    close $fd 
    return $data
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: