|-
| '''Summary'''
|Adds a file, directory or XML string specified by {{Code|input}} to the currently opened database at the specified {{Code|path}}:* {{Code|input}} may either be a single XML document, a directory, a remote URL or a plain XML string. * A document with the same path may occur than once in a database. If this is unwanted, [[#REPLACE|REPLACE]] can be used.<br/>{{Code|input}} may either * If a file is too large to be a single XML documentadded in one go, a directory, a remote URL or a plain XML stringits data structures will be cached to disk first. Caching can be enforced by turning the [[Options#ADDCACHE|ADDCACHE]] option on.
|-
| '''Errors'''