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 Object | Description |
---|---|
Close | Closes 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 Nodes | Returns all the nodes within node in that match the XPath expression. |
Get First Matched Node | Returns 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 Child | Returns the first child of the node in that is not of type Text_Node. |
Get Next Non-Text Sibling | Returns the first sibling of the node in that is not of type Text_Node. |
Get Node Text Content | Returns 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. |
Load | 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. |
New | Returns 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. |
Save | Saves an XML document. |