|
* {{Code|db:type("DB", "factbook.xml")}} returns {{Code|true}} if the specified resource is an XML document.
|}
==db:is-xml==
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|db:is-xml|$db as xs:string, $path as xs:string|xs:boolean}}
|-
| '''Errors'''
|{{Error|open|#Errors}} the addressed database does not exist or could not be opened.
|-
| '''Summary'''
|Checks if the specified resource in the database {{Code|$db}} and the path {{Code|$path}} exists, and if it is an XML document.
|-
| '''Examples'''
|
* {{Code|db:is-xml("DB", "dir/doc.xml")}} returns {{Code|true}}.
|}