xpath2 formula function
Support for XPath 2.0 and some more complex XPath queries, for the less resource-intensive and limited XPath support, please review the xpath user guide
XML Content comes from any of the following sources:
Content from Message Body:
Content from Message Context:
Result from previous Formula operation
Below is a simple example using XML data and an xpath2 expression to extract data: For other and advanced examples, please scroll down on this page to the Examples section.
|XML data from message body||XPath expression (with a look behind)||Unique values|
Do note that the
Nameexpression is escaped using 2 single quotes (
- Extract single or multiple unique values from Content.
- Any and all XPath 2.0 expression as defined by W3C
- Can be applied on any valid Content that returns XML data structure; review Formula user guide for a complete list of functions.
This plugin loads the entire message into RAM, so make sure to apply this function only on small messages.
To use the xpath2 function, the Content parameter must contain a valid XML data structure (otherwise it will fail and you will end up with no or garbage result).
- Input a proper XML Content
- Message Body or Message Context
- Select Formula as the expression type plugin
- Write down the XPath 2.0 expression to use in the 'Expression' text area using the
Expression Type Plugins are used in Search Fields