if (backagain.hasRootElement()) {
normalizeAttributes(backagain.getRootElement());
}
StringWriter swb = new StringWriter();
xsw = soutfactory.createXMLStreamWriter(swb);
xout.output(backagain, xsw);
String actual = swb.toString();
assertEquals(expect, actual);
} catch (Exception e) {
failException("Failed to round-trip the document with exception: "