private static boolean compareXML(final Reader reader1, final Reader reader2, final boolean ignoreWhitespace)
            throws IOException {
        String fragment1 = null;
        String fragment2 = null;
        do {
            fragment1 = nextXMLFragment(reader1, ignoreWhitespace);
            fragment2 = nextXMLFragment(reader2, ignoreWhitespace);

            if (!fragment1.equals(fragment2)) {
                return false;
            }

        } while (fragment1.length() > 0 && fragment2.length() > 0);

        return true;
    }
Generate a unified diff of the two files using the specified number of lines of context.
The diff output is sent to system out in coloured form.

@return True if the files are the same
stroom-test-common/src/main/java/stroom/test/common/ComparisonHelper.java