dbf.setValidating(false);//validation is the root of all evil in xml - tobe
output = new DOMResult(dbf.newDocumentBuilder().newDocument());
xformFactory = TransformerFactory.newInstance();
idTransform = xformFactory.newTransformer();
} catch (Exception ex) {
throw new XRRuntimeException(
"Failed on configuring SAX to DOM transformer.", ex);
}
try {
idTransform.transform(input, output);
} catch (Exception ex) {
throw new XRRuntimeException(
"Can't load the XML resource (using TRaX transformer). " + ex.getMessage(), ex);
}
long end = System.currentTimeMillis();