<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.zipManifest.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.zipManifest</api:function-name><api:suggest>xdmp.zipmanifest</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>zipmanifest</api:suggest><api:function-link mode="xquery" fullname="xdmp:zip-manifest">/apidoc/8.0/xdmp:zip-manifest.xml</api:function-link><api:function mode="javascript" name="zipManifest" type="builtin" lib="xdmp" category="Document Conversion" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.zipManifest"><api:summary>
  Return a manifest for this zip file.  The manifest contains information
  about what is in the zip file.  The form of the manifest is:
  
  Each  <span class="javascript" xmlns="http://www.w3.org/1999/xhtml">part</span>
  is a file within the zip.  The attributes specify the
  uncompressed size for the file, the compressed size for that file, whether
  or not the file is encrypted, and the last-modified timestamp.  Note that
  MarkLogic cannot extract encrypted files, attempting to do so will cause an
  error. Also note that due to a limitation in the zip file format, the
  last-modified time has a granularity of two seconds (e.g. 10:22:33 becomes
  10:22:32).
</api:summary><api:params><api:param name="zipfile" type="binary()" optional="false"><api:param-description>
    The zip document binary node.
  </api:param-description><api:param-name>zipfile</api:param-name><api:param-type>binary()</api:param-type></api:param></api:params><api:return class="javascript">Array</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.zipManifest(xdmp.documentGet("/Documents/corpus.zip"));
===&gt;
[
    {
      "uncompressedSize":0,
      "compressedSize":0,
      "encrypted":false,
      "lastModified":"2014-10-02T09:50:38",
      "path":"corpus/"
    },
    {
      "uncompressedSize":7,
      "compressedSize":7,
      "encrypted":false,
      "lastModified":"2014-10-02T09:50:00",
      "path":"corpus/banana"
    },
    {
      "uncompressedSize":6,
      "compressedSize":6,
      "encrypted":false,
      "lastModified":"2014-10-02T09:50:14",
      "path":"corpus/apple"
    },
...
]
</pre></api:example></api:function></api:function-page>