Loading TOC...

pkg:errors

pkg:errors(
   $pkgname as xs:string
) as element(err:configuration-error)*

Summary

[DEPRECATED: use cma:generate-config and cma:apply-config instead.]

Check a package for errors and, if there are errors, return a description of the errors as err:configuration-error elements. If no errors are detected, an empty sequence is returned.

Parameters
pkgname The name of the package to check for errors.

Example

xquery version "1.0-ml";
import module namespace pkg = "http://marklogic.com/manage/package" 
    at "/MarkLogic/manage/package/package.xqy";

pkg:errors("mypackage)

  => Returns any detected errors.  If no errors are detected, 
     an empty sequence is returned.
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.