Owning Palette: XML VIs and Functions
Requires: Base Development System. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.
Use the LabVIEW Schema VIs and functions to manipulate LabVIEW data in XML format.
Palette Object | Description |
---|---|
Escape XML | Converts special characters to XML syntax according to the LabVIEW XML schema. |
Flatten To XML | Converts any data type you wire to anything and converts it to an XML string according to the LabVIEW XML schema. |
Read From XML File | 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. |
Unescape XML | Converts the XML syntax for special characters back to the special characters according to the LabVIEW XML schema. |
Unflatten From XML | Converts an XML string to a LabVIEW data type according to the LabVIEW XML schema. |
Write to XML File | Writes a text string of XML data with accompanying header tags to a text file. Wire data to the XML Input input to determine the polymorphic instance to use or manually select the instance. All XML data must follow the standard LabVIEW XML schema. |
Refer to the Flatten and Unflatten XML.lvproj in the labview\examples\File IO\XML\Flatten and Unflatten XML directory for an example of using the LabVIEW Schema VIs and Functions.