Read From XML File(string) VI
- Updated2025-07-30
- 2 minute(s) read
Reads and parses tags from a LabVIEW XML file. When you place this VI on the block diagram, the polymorphic VI selector is visible. Use this selector to choose which polymorphic instance to use. All XML data must follow the standard LabVIEW XML schema.

Inputs/Outputs
XML File Path
—
XML File Path is the path and filename from which you want to read XML data. When you specify an empty path, a dialog box prompts the user to specify an XML file.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
XML File Path(duplicate)
—
XML File Path(duplicate) is the path of the file from which the VI reads data. You can use this output to determine the file path that you selected through a dialog box. XML File Path(duplicate) has a value of <Not A Path> if you cancelled the dialog box.
XML Elements
—
XML Elements returns the top-level XML tags found between the end of the </Version> and </LVData> tags in a single string. You then can wire this output to the Unflatten From XML function.
error out
—
error out contains error information. This output provides standard error out functionality. |
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\File IO\XML\Flatten and Unflatten XML\Flatten and Unflatten XML.lvproj
XML File Path
—
error in (no error)
—
XML File Path(duplicate)
—
XML Elements
—
error out
—