XML Parser VIs and Nodes

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 XML Parser VIs and nodes to process XML documents using the XML parser.

The XML parser in LabVIEW is the Xerces 2.7 parser which uses a document object model (DOM).

The VIs and nodes on this palette can return XML Parser error codes.

Palette ObjectDescription
CloseCloses a reference for all XML parser classes. You can use this polymorphic VI to close refnums from the NamedNodeMap class, the NodeList class, the Implementation class, or the Node class. The Node class encompasses all other XML classes.
Get All Matched NodesReturns all the nodes within node in that match the XPath expression.
Get First Matched NodeReturns the first node within node in that matches the XPath expression. If this VI does not find a match, node result is not a valid refnum.
Get First Non-Text ChildReturns the first child of the node in that is not of type Text_Node.
Get Next Non-Text SiblingReturns the first sibling of the node in that is not of type Text_Node.
Get Node Text ContentReturns the combined values of Text_Node children that the node in node owns.
Invoke Node (XML)Invokes a method or action on an XML reference. The node operates in the same way as a standard Invoke Node.
LoadOpens 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.
NewReturns an XML parser session in LabVIEW. Use this VI each time you create a new XML parser session.
Property Node (XML)Gets (reads) and/or sets (writes) properties of an XML reference. The node operates in the same way as a standard Property Node.

National Instruments recommends that you use the Close VI to close all the references after using the XML parser classes.
SaveSaves an XML document.