Generic XML Comparison

Generic XML Comparison

This section provides a basic demonstration of how to use compare Java API to run operations with hard-coded file paths.

Generic XML Comparisons

Comparator Classes

The Compare Java API provides three main comparator classes:

Class

Purpose

DocumentComparator

Document-centric comparison with word-by-word text processing, formatting element handling, and tracked changes output

DataComparator

Data-centric comparison optimised for speed with key-based matching and orderless list support

PipelinedComparator

Fully configurable pipeline-based comparator supporting DXP, DCP, and DTCP configuration files

See Features and Properties Reference for a full list of properties available on each comparator class.

Please see Comparator Reference Guide for more details.