pkg:create

pkg:create(
   $pkgname as xs:string,
   [$pkgbody as node()]
) as empty-sequence()

Summary

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

Create an empty configuration for use with other packaging functions.

Parameters
pkgname The name of the package.
pkgbody The contents of the package.

Example

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

pkg:create("mypackage")
  
  => Creates an empty package, named "mypackage."
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy