To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example VI shows how to query a XML document for three different expressions and will return all the results it finds.
Description
In this specific example (with the attached file as the XML document) it will find five matches for each expression. If you need to parse a large XML document, using this VI with your specific XPath Expressions can be done quick and easy.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Why is each segment in a while loop?
You MUST close all references including all of those coming out of the node result array in the xpath search function.