- TIBCO BusinessEvents®
- Standard
- XPath

# XPath.executeWithEvent()

## Signature

`String executeWithEvent (String xpath, Event event, String prefixes)`

## Domain

ACTION, CONDITION, QUERY, BUI

## Description

Evaluate an XPath Expression against the input event.

## Parameters

Name | Type | Description
--- | --- | ---
`xpath` | `String` | The XPath expression. $var is required in front of the root element, for example: $1count($var/order/orderlines)$1.
`event` | `Event` | The Event object on which the XPath expression executes.
`prefixes` | `String` | The prefixes and namespaces in comma delimiter format, for example: $1xns1=http://www.tibco.com/be,xns2=http://www.tibco.com/support$1.

## Returns

Type | Description
--- | ---
`String` | The result of the evaluation.

## Cautions

RuntimeException for an undefined property.