Get All Matched Nodes VI

Owning Palette: XML Parser VIs and Nodes

Requires: Base Development System

Returns all the nodes within node in that match the XPath expression.

Example

 Add to the block diagram  Find on the palette
node in is a reference to an instance of XML Parser class Node. This VI uses node in as the context node to evaluate the XPath expression.
XPath expression specifies the expression this VI uses to query node in for a match. Use XPath syntax to define the XPath expression.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
node out contains the same reference as node in.
node result array returns an array of references to each node that matches XPath expression. If this VI does not find a match, node result array is empty. If you use a For Loop to process each node from node result array, consider using shift registers instead of tunnels for other data you pass through the loop. Doing so avoids surprising behaviors in case node result array is empty.
error out contains error information. This output provides standard error out functionality.

Example

Refer to the Parse XML String for Multiple Nodes VI in the labview\examples\File IO\XML\Parse XML directory for an example of using the Get All Matched Nodes VI.

 Open example  Find related examples