Loading TOC...

xdmp:gzip

xdmp:gzip(
   $node as node()
) as binary()

Summary

Create a gzip node from a node.

Parameters
$node The node that you want to gzip up.

Example

let $gzip := xdmp:gzip(doc("/mydoc.xml"))
return
xdmp:save("c:/tmp/myzip.gz", $gzip)

=> Creates a gzip file from the document "/mydoc.xml", then
   saves that to the filesystem.

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

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.
  • You can serve up gzip content direct from MarkLogic server https://gist.github.com/xquery/6389383 has the gory details