Get All Matched Nodes VI

LabVIEW 2018 Help


Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)


LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help
LabVIEW 2020 Help

Owning Palette: XML Parser VIs and Nodes

Requires: Base Development System

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

Example

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.

WAS THIS ARTICLE HELPFUL?

Not Helpful