Upload and store XML document(s) into an XML Library.
Documents are uploaded in POST multipart, then XML-parsed on the server side.
To validate documents with DTD's or XML Schema, OASIS XML Catalogs can be configured in the server. When a DTD or Schema is not found, a fallback DTD is used, so no parsing error should happen.
mime-type: text/plain
For each document that could not be generated, return a line containing the error code, the destination path of the Document, and the error message separated by tabs.
The last line is of the form: IMPORT ERRORS #errors, where #errors the number of import errors. Therefore a completely successful put returns a single line 'IMPORT ERRORS 0'.