query = "doc('" + XmldbURI.ROOT_COLLECTION + "/test/" + NUMBERS_XML + "')";
result = service.query(query);
assertEquals("XQuery: " + query, 1, result.getSize());
try {
Node n = ((XMLResource) result.getResource(0)).getContentAsDOM();
DetailedDiff d = new DetailedDiff(compareXML(numbers, n.toString()));
System.out.println(d.toString());
assertEquals(0, d.getAllDifferences().size());
//ignore eXist namespace's attributes
//assertEquals(1, d.getAllDifferences().size());
} catch (Exception e) {
System.out.println("testFunctionDoc : XMLDBException: " + e);
fail(e.getMessage());