- TIBCO BusinessEvents®
- Standard
- XPath

# 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

Name | Type | Description
--- | --- | ---
`xpath` | `String` | The XPath expression. The root element of the XML document is accessible with `$var`, regardless of its actual name and namespace.
`event` | `Event` | The Event containing the payload on which the XPath expression executes.
`prefixes` | `String` | The prefixes and namespaces used in the XPath expression, separated with commas. For example: $1myns=MyNameSpace,xsd=http://www.w3.org/2001/XMLSchema$1.

## Returns

Type | Description
--- | ---
`String[]` | The result of the evaluation. Each node is returned as a separate string in the array.

## Cautions

RuntimeException for an undefined property.