---
title: " XMLVAL"
url: "https://help.formsfly.com/en/article/xmlval"
language: "en"
last_updated: "2025-01-13T16:47:03.466Z"
---

#  XMLVAL

Returns the value from the given XML for the given XPath query.

* * *

### Syntax

`**XMLVAL({{myxmlfield}}, 'resp/token')**`

### Example

```plaintext
XMLVAL({{myxmlfield}}, 'resp/token')
```

### Notes

The opening XPath '/' is not required.

Use the optional true/false validate parameter to raise an error if the query fails.

[Learn more about XPath](https://www.w3schools.com/xml/xpath_syntax.asp)

### Related 

[XMLLIST](https://help.formsfly.com/en/article/xmllist)
