
pkg:exists( $pkgname as xs:string ) as xs:boolean
[DEPRECATED: use cma:generate-config and
cma:apply-config instead.]
true if
the package exists and false if the package does not exist.
| Parameters | |
|---|---|
| pkgname | The package to check. |
http://marklogic.com/xdmp/privileges/manage
xquery version "1.0-ml";
import module namespace pkg = "http://marklogic.com/manage/package"
at "/MarkLogic/manage/package/package.xqy";
pkg:exists("mypackage")
=> Returns 'true' if "mypackage" exists. Otherwise returns 'false.'