DOMParser expectedDOM = new DOMParser();
DOMParser receivedDOM = new DOMParser();
expectedDOM.parse(new InputSource(new ByteArrayInputStream(expectedCopy)));
receivedDOM.parse(new InputSource(new ByteArrayInputStream(receivedCopy)));
Diff difference = new Diff(expectedDOM.getDocument(), receivedDOM.getDocument());
if (!difference.identical()) {
xmlresult.writeElement("ContentValueError", difference.toString());
// System.out.println("##################");
// System.out.println(diffference.toString());
// System.out.println("##################");
}