> ## 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.

# Editing invoice processing settings in XML files

> Edit invoice processing settings outside the program: export them to an XML configuration file, modify keywords and features, and import them back.

Invoice processing settings can be exported to an XML file, edited, and imported back into the program, or used in another project.

## Contents of an XML configuration file

An XML configuration file contains:

* Keywords and other language- and country-specific settings enclosed in the `<Countries>`, `<Country>`, `<Languages>`, and `<Language>` tags.
* Regular expressions for order numbers enclosed in the following tags:

  ```xml theme={null}
  <OrderNumber>
    <Value>
      <RegularExpression></RegularExpression>
    </Value>
  </OrderNumber>
  ```
* A list of additional Document Definition features for processing invoices and their status (enabled or disabled) in the **AdditionalFeatures** tag. For more information, see [Additional fields](/flexi-capture/invoice-reader/ir-additional-fields) and [Enabling additional program features for operators](/flexi-capture/invoice-reader/ir-advanced-options-activation).
* A list of invoice recognition languages in the **PrimaryLanguages** tag.
* Settings for the invoice status additional feature in the **DocumentStatus** tag. For more information, see [The status of documents in ABBYY FlexiCapture for Invoices projects](/flexi-capture/invoice-reader/ir-status).

## Save current settings to an XML file

<Steps>
  <Step title="Open the Document Definition properties">
    In the Document Definition Editor, click **Document Definition Properties...** on the **Document Definition** menu.
  </Step>

  <Step title="Open the Document Definition settings">
    Click the **Document Definition Settings** tab.
  </Step>

  <Step title="Export the settings">
    Click the **Export Settings...** button.
  </Step>

  <Step title="Save the file">
    Save the file.
  </Step>
</Steps>

The resulting file can be edited in a text editor.

## Import settings from an XML configuration file

<Steps>
  <Step title="Open the Document Definition properties">
    In the Document Definition Editor, click **Document Definition Properties...** on the **Document Definition** menu.
  </Step>

  <Step title="Open the Document Definition settings">
    Click the **Document Definition Settings** tab.
  </Step>

  <Step title="Import the settings">
    Click the **Import Settings...** button.
  </Step>

  <Step title="Open the settings file">
    Open the file with invoice settings.
  </Step>
</Steps>

<Warning>
  If an XML file contains an error in a tag, contains an invalid value, or has an incorrect structure, a notification containing the number of the line with the error is displayed when you import settings from this file. Any unknown file sections or parameters are ignored.
</Warning>
