Select XML nodes for use in actions

This topic describes how to access the XPath Query Builder dialog box, provide sample XML data, and select XML nodes for use within workflow actions.

If the XML source specified for the action is available and all tokens and references are replaced with actual run time values, then the XPath Builder uses the XML source to display the XML structure within the XML Browser tab. If the XML source specified for the action is not available, the XML data that is required to generate the Tree View in the XML Browser must be provided manually.

To access the XPath Query Builder dialog box

  • In the workflow configuration settings dialog box, click XPath Builder.

    This functionality is available for the workflow actions Query XML and Update XML.

To provide sample XML data, do one of the following

  • On the ribbon of the XPath Query Builder dialog box, click XML Source and then enter the sample XML data into the text box.
  • On the ribbon of the XPath Query Builder dialog box, click Import XML and then specify a file or URL containing the sample XML data for the text box.

    Note: If the workflow is being designed on an InfoPath form library, the XML Browser will load the InfoPath form template that has been uploaded to the form library in the Tree View if the action’s XML source selected is Current item.

To select the node to be used within the action

  1. Ensure that sample XML data appears in the text box of the XPath Query Builder dialog box.

  2. On the ribbon, click Tree View.
  3. Expand the nodes to list elements and attributes.
  4. Select the node you want.

    The selected node is listed as the "active XPath" value.

  5. On the ribbon, click Apply to save changes and close the XPath Query Builder dialog box.

    The selected node is listed in the action configuration settings dialog box.