public void doDOMRead() throws Exception
{
XMLStreamReader reader = ifactory.createXMLStreamReader(getResourceAsStream("amazon2.xml"));
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setValidating(false);
dbf.setIgnoringComments(false);
dbf.setIgnoringElementContentWhitespace(true);
dbf.setNamespaceAware(true);
org.w3c.dom.Document doc = STAXUtils.read(dbf.newDocumentBuilder(), reader, false);
// Diff diff = new Diff(DOMUtils.readXml(getResourceAsStream("amazon2.xml")), doc);
// assertTrue("XML isn't similar: " + diff.toString(), diff.similar());
// assertTrue(diff.identical());
}