XPath.executeXPathWithEvent()

Signature

String[] executeXPathWithEvent (String xpath, Event event, String prefixes)

Domain

ACTION, CONDITION, QUERY

Description

Evaluate an XPath Expression against the input event.

Parameters

NameTypeDescription
xpathStringThe XPath expression. The root element of the XML document is accessible with $var, regardless of its actual name and namespace.
eventEventThe Event containing the payload on which the XPath expression executes.
prefixesStringThe prefixes and namespaces used in the XPath expression, separated with commas. For example: $1myns=MyNameSpace,xsd=http://www.w3.org/2001/XMLSchema$1.

Returns

TypeDescription
String[]The result of the evaluation. Each node is returned as a separate string in the array.

Cautions

RuntimeException for an undefined property.