# WriteDocument

Generates new FlowFiles with the document in IDX, XML, or JSON format. The processor can optionally write documents to a file on disk.

## Properties

Name | Default Value | Description
--- | --- | ---
IDOL License Service |  | An IdolLicenseServiceImpl that provides a way to communicate with an IDOL License Server.
Format | IDX | The format in which to write the document. Specify IDX, XML, or JSON.
IDX - Write XML Safe Field Values | false | Some control characters cannot be represented in XML format because they are forbidden by the XML specification. When you set this parameter to `TRUE`, characters in document fields that are forbidden in XML are replaced with spaces. This parameter applies only when you write documents in IDX format. When you write documents in XML format, the forbidden characters are always replaced by spaces.
File in which to write the document |  | The path of the file in which to write the document.
Archive Directory |  | The directory in which to save archived files (when the file you specify reaches the maximum size it is archived).
Max file size in bytes before archiving |  | The size above which the file is archived.

## Relationships

Name | Description
--- | ---
failure | FlowFiles from which there were errors.
original | FlowFiles that were processed successfully.
written | New FlowFiles with a representation of the document in the chosen format.

_FT_HTML5_bannerTitle.htm