# 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`. If `ownfile` is `true`, this file is deleted after it has been inserted. By default, this is `false`.
- `isfilename`. If `isfilename` is `true`, the content tag contains the full path to the file. If `isfilename` is `false`, the content tag contains the entire file base64 encoded. The `ownfile` tag is ignored in this case.
- `insert`. The `insert` 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.

© Copyright 2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm