Skip to main content
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 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 Comparison Result
NameTypeMultiplicityParent TagDescription
ComparisonResultComparisonResultType <Accordion title=“Type elements”> Change — the detected change; has the ChangeType </Accordion> Has no type attributes1noThe comparison result of two files.
ChangeChangeType <Accordion title=“Type elements”> Location — the location of the detected change; has the LocationType TextChange — the change detected in the text; has the 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…unboundedComparisonResultThe information about one detected change.
Location<br />LocationType <Accordion title=“Type elements”> Position — the position of the change in the text; has the PositionType Region — the region of the change; has the RegionType </Accordion> <Accordion title=“Type attributes”> Type — (required) The location type. It can be one of the following values: Reference, User </Accordion>2<br />ChangeThe location of the detected change.
TextChangeTextChangeType <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 attributes1ChangeThe change detected in the text.
PositionPositionType <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>2LocationThe position of the change in the text.
RegionRegionType, 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 attributes1…unboundedLocationThe region of the change.
ComparisonSchemeDiagram

See also

IComparisonResult::Export