How to use an XML Configuration

Tags: #<Tag:0x00007f70bfe65208> #<Tag:0x00007f70bfe65078>

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

© Copyright 1996 - 2018, i-net software; All Rights Reserved.