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


icon

Inputs/Outputs

  • cgenclassrn.png node in

    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.

  • cstr.png 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.

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • igenclassrn.png node out

    node out contains the same reference as node in.

  • i1dgenclassrn.png node result array

    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.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.

  • Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\File IO\XML\Parse XML\Parse XML String for Multiple Nodes.vi