Skip to main content
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 folder for macOS or the Inc folder for Linux and Windows (Start > Programs > ABBYY FineReader Engine 12 > Installation Folders > Include Files Folder).

Description of XML Schema for MRZ

NameTypeMultiplicityParent TagDescription
MRZDataMRZDataType <Accordion title=“Type elements”> Field — the recognized MRZ field; has the FieldComplexType Line 1 — the first MRZ line; has the LineComplexType Line 2 — the second MRZ line; has the LineComplexType Line 3 — the third MRZ line, has the LineComplexType </Accordion> Has no type attributes1noThe recognized MRZ data.
FieldFieldComplexType <Accordion title=“Type elements”> Value — the field value (string) Checksum — the checksum of MRZ field; has the ChecksumComplexType Region — the field region; has the RegionComplexType Chars — attributes of the characters of the field; has the 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…unboundedMRZDataThe recognized MRZ field.
Line1<br />Line2<br />LineComplexType <Accordion title=“Type elements”> Value — the line value (string) Region — the field region; has the RegionComplexType </Accordion> Has no type attributes1<br />MRZDataA line of MRZ.
Line3LineComplexType0…1MRZDataThe third line of MRZ.
ChecksumChecksumComplexType <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 attributes0FieldThe checksum of MRZ field, available for some of the fields.
RegionRegionComplexType, 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 attributes1FieldThe region of MRZ field.
CharsCharsComplexType <Accordion title=“Type elements”> Char — single character; has the CharComplexType </Accordion> Has no type attributes1FieldCharacters of the field.
CharCharComplexType <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…unboundedCharsAttributes of a single character.

Tag hierarchy diagram

MRZ_XMLSchemeDiagram

See also

IMrzData::ExportToFile IMrzData::ExportToFileEx