public static String diffIgnoreUpdateWithAttributeQualifier(byte[] expected, byte[] actual)
throws Exception {
Document xmlExpected = getXML(expected);
Document xmlActual = getXML(actual);
Diff diff = new DiffIgnoreUpdateWithAttributeQualifier(xmlExpected, xmlActual);
if (diff.similar()) {
return null;
}
System.err.println("Expected:\r\n" + TestUtils.printPrettyXML(xmlExpected));
System.err.println("Actual:\r\n" + TestUtils.printPrettyXML(xmlActual));
return diff.toString();