Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# XPathFunction


`
public


interface
XPathFunction
`


`


`

|---|
| javax.xml.xpath.XPathFunction |

<br />

*** ** * ** ***

<br />

`XPathFunction` provides access to XPath functions.

Functions are identified by QName and arity in XPath.

<br />

## Summary

| ### Public methods ||
|---|---|
| ` abstract https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/javax/xml/xpath/XPathFunction#evaluate(java.util.List)(https://developer.android.com/reference/java/util/List<E> args) ` <br /> Evaluate the function with the specified arguments. |

## Public methods

### evaluate

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract Object evaluate (List<E> args)
```

<br />

Evaluate the function with the specified arguments.

To the greatest extent possible, side-effects should be avoided in the
definition of extension functions. The implementation evaluating an
XPath expression is under no obligation to call extension functions in
any particular order or any particular number of times.

<br />

<br />

| Parameters ||
|---|---|
| `args` | `List`: The arguments, `null` is a valid value. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/Object` | The result of evaluating the `XPath` function as an `Object`. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/javax/xml/xpath/XPathFunctionException` | If `args` cannot be evaluated with this `XPath` function. |