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

# XML Schema for MRZ

> XML schema for ABBYY FineReader Engine MRZ exports (MrzXmlSchema.xsd) — full MRZ text, extracted fields, and additional ID document information.

The data extracted from a machine-readable zone (MRZ) can be exported to an XML file. It contains the full text of the MRZ, the extracted fields and additional information. See the description of XML tags in the table below.

You can find the XML schema for MRZ in the MrzXmlSchema.xsd file. This file is located in the [Headers](/fine-reader/engine/distribution/distribution-macos/distribution-kit-macos) folder for macOS or the Inc folder for [Linux](/fine-reader/engine/distribution/distribution-linux/distribution-kit-linux#inc) and [Windows](/fine-reader/engine/distribution/distribution-windows/distribution-kit#inc) (Start > Programs > ABBYY FineReader Engine 12 > Installation Folders > Include Files Folder).

## Description of XML Schema for MRZ

| Name                   | Type                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | Multiplicity  | Parent Tag                                                                              | Description                                                  |
| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | --------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
| MRZData                | MRZDataType <Accordion title="Type elements"> [Field](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#field) — the recognized MRZ field; has the [FieldComplexType](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#fieldcomplextype) [Line 1](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#line) — the first MRZ line; has the [LineComplexType](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#linecomplextype) [Line 2](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#line) — the second MRZ line; has the [LineComplexType](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#linecomplextype) [Line 3](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#line) — the third MRZ line, has the [LineComplexType](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#linecomplextype) </Accordion> Has no type attributes                                                                                           | 1             | no                                                                                      | The recognized MRZ data.                                     |
| Field                  | FieldComplexType <Accordion title="Type elements"> Value — the field value (string) [Checksum](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#checksum) — the checksum of MRZ field; has the [ChecksumComplexType](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#checksumcomplextype) [Region](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#region_mrz) — the field region; has the [RegionComplexType](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#regioncomplextype) [Chars](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#chars_mrz) — attributes of the characters of the field; has the [CharsComplexType](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#charscomplextype) </Accordion> <Accordion title="Type attributes"> type — (string) field type. It can be one of the following values: BirthDate, DocumentNumber, DocumentSubType, DocumentType, GivenName, IssuingCountry, LastName, Nationality, PersonalNumber, Sex </Accordion> | 0...unbounded | [MRZData](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#mrzdata) | The recognized MRZ field.                                    |
| Line1<br />Line2<br /> | LineComplexType <Accordion title="Type elements"> Value — the line value (string) [Region](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#region_mrz) — the field region; has the [RegionComplexType](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#regioncomplextype) </Accordion> Has no type attributes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | <br />        | [MRZData](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#mrzdata) | A line of MRZ.                                               |
| Line3                  | [LineComplexType](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#linecomplextype)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | 0...1         | [MRZData](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#mrzdata) | The third line of MRZ.                                       |
| Checksum               | ChecksumComplexType <Accordion title="Type elements"> Value — the checksum value (string) Verified — Result of MRZ field verification matches the recognized value. The valid values are TRUE and FALSE (string) </Accordion> Has no type attributes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | 0             | [Field](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#field)     | The checksum of MRZ field, available for some of the fields. |
| Region                 | RegionComplexType, the sequence of Rect tags <Accordion title="Type elements"> Rect — rectangle of a block region. Rectangle is represented as a set of coordinates divided by commas (string) </Accordion> Has no type attributes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | 1             | [Field](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#field)     | The region of MRZ field.                                     |
| Chars                  | CharsComplexType <Accordion title="Type elements"> [Char](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#char_mrz) — single character; has the [CharComplexType](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#charcomplextype) </Accordion> Has no type attributes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | 1             | [Field](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#field)     | Characters of the field.                                     |
| Char                   | CharComplexType <Accordion title="Type elements"> Value — the character value (string) Rect — rectangle of a block region. Rectangle is represented as a set of coordinates divided by commas (string) </Accordion> <Accordion title="Type attributes"> Suspicious — the character was recognized uncertainly. The valid values are TRUE and FALSE (string) </Accordion>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | 0...unbounded | [Chars](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#chars_mrz) | Attributes of a single character.                            |

## Tag hierarchy diagram

<img src="https://mintcdn.com/abbyy/lsETHFYUFiongXSm/images/fine-reader/engine/mrz_xmlschemediagram.gif?s=b29903181551323511836a74a3cb0491" alt="MRZ_XMLSchemeDiagram" width="709" height="308" data-path="images/fine-reader/engine/mrz_xmlschemediagram.gif" />[](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#rect_region)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#rect_region)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#rect_region)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#region_mrz)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#region_mrz)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#region_mrz)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#value_line)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#value_line)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#value_line)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#rect_char)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#value_char)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#char_mrz)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#chars_mrz)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#rect_region)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#region_mrz)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#verified_checksum)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#value_checksum)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#checksum)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#value_field)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#mrzdata)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#line)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#line)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#line)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-mrz#field)

## See also

[IMrzData::ExportToFile](/fine-reader/engine/api-reference/document-related-objects/mrzdata/exporttofile-method)

[IMrzData::ExportToFileEx](/fine-reader/engine/api-reference/document-related-objects/mrzdata/exporttofileex-method)
