<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.gzip.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.gzip</api:function-name><api:suggest>xdmp.gzip</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>gzip</api:suggest><api:function-link mode="xquery" fullname="xdmp:gzip">/apidoc/8.0/xdmp:gzip.xml</api:function-link><api:function mode="javascript" name="gzip" type="builtin" lib="xdmp" category="Document Conversion" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.gzip"><api:summary>
  Create a gzip node from a node.
</api:summary><api:params><api:param name="node" type="node()" optional="false"><api:param-description>
    The node that you want to gzip up.
  </api:param-description><api:param-name>node</api:param-name><api:param-type>Node</api:param-type></api:param></api:params><api:return>binary()</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
var gzip = xdmp.gzip(cts.doc("/mydoc.xml"));
xdmp.save("/tmp/myzip.gz", gzip);

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

</pre></api:example></api:function></api:function-page>