xdmp:zip-manifest( $zipfile as binary() ) as element()
Return a manifest for this zip file. The manifest contains information about what is in the zip file. The form of the manifest is:
<parts xmlns="xdmp:zip"> <part uncompressed-size="[size]" compressed-size="[size]" encrypted="[true/false]">path1</part> <part uncompressed-size="[size]" compressed-size="[size]" encrypted="[true/false]">path2</part> ...more parts </parts>Each <part> 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).
Parameters | |
---|---|
zipfile | The zip document binary node. |
xdmp:zip-manifest($myzip) => <parts> <part uncompressed-size="89246" compressed-size="4538" encrypted="no" last-modified="2009-03-20T03:30:32"> docProps/app.xml </part> <part uncompressed-size="2896" compressed-size="634" encrypted="no" last-modified="2009-03-23T19:30:32"> word/fontTable.xml </part> <part uncompressed-size="139914" compressed-size="12418" encrypted="yes" last-modified="2009-03-23T15:30:32"> word/styles.xml </part> </parts>