Load XML File (UTF-8 String Errors) VI
- Updated2026-07-27
- 3 minute(s) read
Opens an XML file and allows you to configure the XML parser to validate the file against a schema or Document Type Definition (DTD).
National Instruments recommends that you use the Close VI to close all the references after using the XML parser classes.
The VI contains information about errors that the XML parser encounters while parsing the document.

Inputs/Outputs
validate on load (Auto)
—
validate on load specifies the validation scheme that the XML parser uses. The default is Auto, which turns on validation only if the parser detects an internal or external DTD subset.
preserve whitespace (True)
—
preserve whitespace specifies whether a validating parser includes ignorable whitespaces as Text Nodes. The default is TRUE.
path to XML document
—
path to XML document contains the location of the XML document you want to load into the XML parser.
process namespaces (False)
—
process namespaces disables namespace processing for the XML parser when set to FALSE, the default. When set to TRUE, the XML parser enforces the constraints and rules that the NameSpace specification contains.
process schema (False)
—
process schema disables schema processing for the XML parser when set to FALSE, the default. If you set the control to TRUE, you must set process namespaces to TRUE.
load external DTD (True)
—
load external DTD specifies whether the XML parser can load external DTDs. The default is TRUE.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
schema full checking (False)
—
schema full checking specifies whether the XML parser runs full or partial schema constraint checking. The default is FALSE, which configures the XML parser to run partial constraint checking.
DOM document out
—
DOM document out returns a reference to the new XML parser session.
parse errors
—
parse errors contains information on errors the XML parser found when it parsed the document, including problems the parser encountered when validating the document against the schema.
error out
—
error out contains error information. This output provides standard error out functionality. |
validate on load (Auto)
—
preserve whitespace (True)
—
path to XML document
—
error in (no error)
—
DOM document out
—
parse errors
—
error out
—