<syntaxhighlight lang="xquery">
let $uri := 'code.xqm'
let $name := "'run"'
for $f in inspect:functions($uri)
where local-name-from-QName(function-name($f)) = $name
return $f()
</syntaxhighlight>
|-
| '''Errors'''
|{{Error|parse|#Errors}} Error while parsing a module.
|}
==inspect:type==
{{Mark|Updated with Version 9.6:}} options added.
{| width='100%'
|'''Examples'''
|An example is [[#Examples|shown below]].
|-
| '''Errors'''
|{{Error|parse|#Errors}} Error while parsing a module.
|}
|'''Examples'''
|An example is [[#Examples|shown below]].
|-
| '''Errors'''
|{{Error|parse|#Errors}} Error while parsing a module.
|}
! width="110"|Code
|Description
|-
|{{Code|parse}}
|Error while parsing a module.
|-
|{{Code|unknown}}