Using the XPath Expression Editor

You use XPath expressions to select a subset of an XML message context variable. You can use the test console in the XPath Expression Editor to test the definition of the XPath expression. An XPath expression takes a single XML document as input and generates a sequence of XML documents, primitives types, or both as output.

Table 30-9 describes XPath expression configuration options.

Table 30-9 Configuring XPath Options 
Section
Description
Name
The type of expression being tested.
Test Console Actions
Execute
Apply the transformation.
Reset
Reset the input field.
Close
Cancel the current operation.
Variables
This section contains a single input field corresponding to the XML document against which this XPath expression is being tested.
 
The XML input can be file-based or text-based. Referencing a file for input takes precedence over textual input. Browse and select the file you want to use in your test.

  1. Access the test console when editing an action in the message flow of a pipeline. To access the XPath Expression Editor, see Creating and Editing Inline XQuery and XPath Expressions.
  2. Configure the test data for the XPath expression in the Variables section of the page. For more information, see Table 30-9.
  3. Click Execute. The testing page displays the results.
  4. Once you have completed a test, you can use the Back button to execute a new test. To execute a new test after making changes to the XPath expression, you must close and reopen the test console for the changes to take effect.