pkg:get-package( $pkgname as xs:string, [$mimetype as xs:string?] ) as xs:string?
[DEPRECATED: use cma:generate-config
and
cma:apply-config
instead.]
The XML and JSON formats only return the configuration of application servers and databases in the package. Packages may also contain modules, so the only reliable way to transport packages between clusters is with the ZIP format.
xquery version "1.0-ml"; import module namespace pkg = "http://marklogic.com/manage/package" at "/MarkLogic/manage/package/package.xqy"; pkg:get-package("mypackage", "application/xml") (: Returns the contents of the 'mypackage' package in XML format. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.