> For the complete documentation index, see [llms.txt](https://sevenval.gitbook.io/flat/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sevenval.gitbook.io/flat/reference/functions/verify-xmldsig.md).

# verify-xmldsig()

```
boolean verify-xmldsig(element)
```

Verifies the digital signature ([XMLDSig](https://en.wikipedia.org/wiki/XML_Signature)) of an XML element.

`element` is expected to be a node-set with the signed element as its first node, containing the `Signature` element in the `http://www.w3.org/2000/09/xmldsig#` namespace, or a signed DOM document or an XML string. Only the first node of a provided node-set will be verified.

Returns `true()` if the included XML `Signature` element is valid for the given element, `false()` otherwise.

## Example

```markup
<eval out="$valid">verify-xmldsig($signed-xml)</eval>
```
