> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Using an XML file to specify export settings

> Store Pega export settings in an XML config file and register the XmlFolder path so processing stations read mappings without editing the FlexiCapture script.

One advantage of using an XML file is that you don’t have to edit the script code or the Document Definition. All modifications can be made by editing the XML file, which is much simpler than editing the script code. However, the XML file should be located on every FC processing station. And you will also have to synchronize it manually on all of the FC stations from which data is to be exported to Pega.

To specify export settings in an XML file:

1. As your export script, use the file named "Pega - ExportScript - Configure by XML.cs" from the ZIP archive containing the PEGA files.
2. Create an XML file named "\<Project name>\_\<Document Definition name>.xml." This naming scheme will allow you to have multiple XML files for different Document Definitions.
3. In the registry of the computer with a processing station, locate HKEY\_LOCAL\_MACHINE\SOFTWARE\ABBYY\FlexiCapture\12.0\Connectors\Pega and in its "XmlFolder" string value field, specify the path to the folder where the settings file is to be stored.
4. In the registry of the computer with a processing station, locate the HKEY\_LOCAL\_MACHINE\SOFTWARE\ABBYY\FlexiCapture\12.0\Connectors\ and set its "Pega" string value field to *true*.

<Note>
  For an example of an XML configuration file with detailed comments, please see the file named "default.config.xml" that is provided with the PEGA.
</Note>
