InsertXML
The InsertXML
parameter specifies XML to determine how and where to add each document, all the metadata, and optionally, a file to insert for each document. Some connectors expect a file to be provided.
The data should be provided in XML format. For example:
<insertXML> <insert> <reference>reference</reference> <property name="propname" value="propvalue"/> <!-- ... --> <metadata name="fieldname" value="fieldvalue"/> <!-- ... --> <file> <isfilename>true/false</isfilename> <ownfile>true/false</ownfile> <content>filename/base64file</content> </file> </insert> <!-- ... --> </insertXML>
Most of the tags are optional.
ownfile
. Ifownfile
istrue
, this file is deleted after it has been inserted. By default, this isfalse
.isfilename
. Ifisfilename
istrue
, the content tag contains the full path to the file. Ifisfilename
isfalse
, the content tag contains the entire file base64 encoded. Theownfile
tag is ignored in this case.insert
. Theinsert
tag can be omitted if a single document is being inserted.reference
,property
,metadata
. The usage of these tags depends on the connector used.
For more information about how to construct the InsertXML, refer to the documentation for the connector performing the insert.