* <testReport> element. Then, process the
* TestReports recursively.
*/
DocumentBuilder docBuilder
= DocumentBuilderFactory.newInstance().newDocumentBuilder();
DOMImplementation impl
= docBuilder.getDOMImplementation();
Document document = null;
if(report.getTest() instanceof TestSuite){
document = impl.createDocument(XTR_NAMESPACE_URI,
XTR_TEST_SUITE_REPORT_TAG, null);
}
else {
document = impl.createDocument(XTR_NAMESPACE_URI,
XTR_TEST_REPORT_TAG, null);
}
Element root = document.getDocumentElement();