How to use an XML Configuration

To load an XML configuration file, please use the class XMLConfiguration.
This class requires an XML files as a parameter

IConfiguration configuration = null;
try {
    configuration = new XMLConfiguration( <XML config file> );
} catch( InvalidPropertiesFormatException e ) {
    e.printStackTrace();
}

That configuration can now be used as usual

new PDFComparer()
            .setConfiguration( configuration )
            .addPresenter( new ReportPDFPresenter(false, true, <file1>.getParentFile()) )
            .compare( <file1>, <file2> );

View full sourcecode