xdmp:gzip( $node as node() ) as binary()
Create a gzip node from a node.
Parameters | |
---|---|
node | The node that you want to gzip up. |
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. :)