xquery:eval("declare namespace pref='URI'; $pref:xml", map{ xs:QName('pref:xml') := 'XML' }),
</pre>
|}
==xquery:evaluate==
{{Mark|Introduced with Version 7.8:}}
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|xquery:evaluate|$query as xs:string|item()*}}<br />{{Func|xquery:evaluate|$query as xs:string, $bindings as map(*)|item()*}}<br />
|-
| '''Summary'''
|Evaluates {{Code|$query}} as XQuery expression at runtime and returns the resulting items. In contrast to [[#xquery:eval|xquery:eval]], items will never be copied by this function. In exchange, no new database can be opened by this function.
|-
| '''Errors'''
|{{Error|BXXQ0001|#Errors}} the query contains [[XQuery Update#Updating Expressions|updating expressions]].<br/>{{Error|FOTY0013|#Errors}} the expression yields function items.
|}