> ## 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 Comparison Result

> XML schema for ABBYY FineReader Engine document comparison results (ComparisonResultXmlSchema.xsd) — types of modifications, locations, and document references.

The comparison result of the document or page with its copy may be represented in XML format. It contains the information about the types of modifications, that were made to the content, and locations of these changes in both files. See the description of XML tags in the table below.

You can find the XML schema for comparison result in ComparisonResultXmlSchema.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 Comparison Result

| Name             | Type                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Multiplicity  | Parent Tag                                                                                                              | Description                                |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| ComparisonResult | ComparisonResultType <Accordion title="Type elements"> [Change](/fine-reader/engine/specifications/export-formats/xml-schema-for-comparison-result#change) — the detected change; has the [ChangeType](/fine-reader/engine/specifications/export-formats/xml-schema-for-comparison-result#changetype) </Accordion> Has no type attributes                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | 1             | no                                                                                                                      | The comparison result of two files.        |
| Change           | ChangeType <Accordion title="Type elements"> [Location](/fine-reader/engine/specifications/export-formats/xml-schema-for-comparison-result#location) — the location of the detected change; has the [LocationType](/fine-reader/engine/specifications/export-formats/xml-schema-for-comparison-result#locationtype) [TextChange](/fine-reader/engine/specifications/export-formats/xml-schema-for-comparison-result#textchange) — the change detected in the text; has the [TextChangeType](/fine-reader/engine/specifications/export-formats/xml-schema-for-comparison-result#textchangetype) </Accordion> <Accordion title="Type attributes"> ModificationType — (required) the type of modification made to the content. It can be one of the following values: Deleted, Inserted, Modified </Accordion> | 0...unbounded | [ComparisonResult](/fine-reader/engine/specifications/export-formats/xml-schema-for-comparison-result#comparisonresult) | The information about one detected change. |
| Location<br />   | LocationType <Accordion title="Type elements"> [Position](/fine-reader/engine/specifications/export-formats/xml-schema-for-comparison-result#position) — the position of the change in the text; has the [PositionType](/fine-reader/engine/specifications/export-formats/xml-schema-for-comparison-result#positiontype) [Region](/fine-reader/engine/specifications/export-formats/xml-schema-for-comparison-result#region) — the region of the change; has the [RegionType](/fine-reader/engine/specifications/export-formats/xml-schema-for-comparison-result#regiontype) </Accordion> <Accordion title="Type attributes"> Type — (required) The location type. It can be one of the following values: Reference, User </Accordion>                                                                      | 2<br />       | [Change](/fine-reader/engine/specifications/export-formats/xml-schema-for-comparison-result#change)                     | The location of the detected change.       |
| TextChange       | TextChangeType <Accordion title="Type elements"> ReferenceText — the text change in the original document or page (string) UserText — the text change in the document or page copy (string) </Accordion> Has no type attributes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | 1             | [Change](/fine-reader/engine/specifications/export-formats/xml-schema-for-comparison-result#change)                     | The change detected in the text.           |
| Position         | PositionType <Accordion title="Type elements"> BlockNumber — the index of the text block in the page layout PageIndex — the page index ParagraphIndex — the index of the paragraph in the text block SymbolIndex — the index of the symbol in the text block </Accordion> <Accordion title="Type attributes"> Type — (required) The position type. It can be one of the following values: Begin, End </Accordion>                                                                                                                                                                                                                                                                                                                                                                                           | 2             | [Location](/fine-reader/engine/specifications/export-formats/xml-schema-for-comparison-result#location)                 | The position of the change in the text.    |
| Region           | RegionType, 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) PageIndex — (required) the index of the page with the detected changes </Accordion> Has no type attributes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | 1...unbounded | [Location](/fine-reader/engine/specifications/export-formats/xml-schema-for-comparison-result#location)                 | The region of the change.                  |

<img src="https://mintcdn.com/abbyy/6udH-pkk8zkVafYH/images/fine-reader/engine/comparisonschemediagram.gif?s=e1e9d7b9c34d589bf8663a0f271fad00" alt="ComparisonSchemeDiagram" width="559" height="201" data-path="images/fine-reader/engine/comparisonschemediagram.gif" />[](/fine-reader/engine/specifications/export-formats/xml-schema-for-comparison-result#rect)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-comparison-result#region)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-comparison-result#position)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-comparison-result#textchange)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-comparison-result#location)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-comparison-result#change)[](/fine-reader/engine/specifications/export-formats/xml-schema-for-comparison-result#comparisonresult)

## See also

[IComparisonResult::Export](/fine-reader/engine/api-reference/document-comparison-objects/comparisonresult/export-method)
