XML Examples tutorial
XPATH interpreter Applying the XPATH expression

## Example

- This example allows a selection from a document formed by XS-S-1, and applies a user-written XPATH expression to it.

- The page has selectable sample expressions including:

  - Count of all titles
  - Sum of the length of sect2 titles
  - All first paragraphs of sect2's.
- The example uses xpath_eval, and iterates on the results if an array is produced.
- A single element of the XS-S-1 data is picked as the context node.
- A special button applies the operation on all rows with xpath_contains, showing the result set with doc name and result.
- This shows how one row can make multiple results with xpath_contains, but will return an array with xpath_eval.