Building XPath expressions that use operators

Workbench supports XPath expressions that include operators. Operators are evaluated at run time.

Almost all expressions that include operators require that a value is included on either side of the operation. For example, the less-than operator ( < ) requires two values to compare.

Only the unary minus expression uses an operator with only one value; unary minus expressions include a minus sign (-) followed by a value. The unary minus expression - value returns the negative of the value value .

To build a complex expression by using operators:

  1. Enter the value to use on the left side of the operator:

    • To use data from the data tree, click Process Data to view the data tree, select the data item to use as the value, and click Insert Selection.

    • To use the results of a function, click Functions to view the Functions library, select the function, and click Insert Selection.

    • To enter other text, type the value.

  2. Click Operators to view the Operators library.

  3. Locate the operator that you want to use and choose either of these ways to add it to the expression:

    • Select the operator and click Insert Selection.

    • Double-click the operator.

    View full size graphic
    A. Selected operator B. Click to insert C. Inserted operator
  4. Enter the value to use on the right side of the operator:

    • To use data from the data tree, click Process Data to view the data tree, select the data item to use as the value, and click Insert Selection.

    • To use the results of a function, click Functions to view the Functions library, select the function, and click Insert Selection.

    • To enter other text, type the value.

  5. When the expression is complete, click OK.

// Ethnio survey code removed