| width='90' | '''Signatures'''|{{Func|archive:create|$entries as elementitem(archive:entry)*, $contents as item()*|xs:base64Binary}}<br />{{Func|archive:create|$entries as elementitem(archive:entry)*, $contents as item()*, $options as item()|xs:base64Binary}}<br />
|-
| '''Summary'''
|Creates a new ZIP archive from the specified entries and contents.<br/>The {{Code|$entries}} descriptors contain argument contains meta information required to create new ZIP entries. Beside All items may either be of type {{Code|xs:string}}, representing the mandatory entry name, which is contained in or {{Code|element(archive:entry)}}, containing the name as text nodeand additional, further optional attributes can be specified:
* {{Code|last-modified}}: timestamp, specified as xs:dateTime (default: current time)
|{{Error|ARCH0001|#Errors}} the number of entries and contents differs.<br />{{Error|ARCH0002|#Errors}} the specified option or its value is invalid or not supported.<br />{{Error|ARCH0003|#Errors}} entry descriptors contain invalid entry names, timestamps or compression levels.<br/>{{Error|ARCH0004|#Errors}} the specified encoding is invalid or not supported, or the string conversion failed.<br/>{{Error|ARCH9999|#Errors}} archive creation failed for some other reason.<br />{{Error|FORG0006|XQuery Errors#Function Errors}} (some of) the contents are not of an argument has a wrong type {{Code|xs:string}} or {{Code|xs:base64Binary}}.
|-
| '''Examples'''
|-
| width='90' | '''Signatures'''
|{{Func|archive:update|$zip as xs:base64Binary, $entries as elementitem(entry)*, $contents as item()*|xs:base64Binary}}
|-
| '''Summary'''
modify replace value of node $c//*[text() = "HELLO WORLD!"] with "HELLO UNIVERSE!"
return fn:serialize($c)
let $updated := archive:update($archive, element archive:entry { $doc }, $entry)
return file:write-binary($output, $updated)
</pre>
|-
| width='90' | '''Signatures'''
|{{Func|archive:delete|$zip as xs:base64Binary, $entry-names entries as xs:stringitem()*|xs:base64Binary}}
|-
| '''Summary'''
|Deletes entries from a zip archive.<br/>The format of {{Code|$entry-namesentries}} is the list of entries to be deletedsame as for [[#archive:create|archive:create]].