assertEquals("http://www.foo.com", result.getResource(0).getContent().toString());
}
@Test
public void preserveSpace() throws XMLDBException, IOException, SAXException {
final XQueryService service =
storeXMLStringAndGetQueryService("whitespace.xml", ws);
final ResourceSet result =
service.queryResource("whitespace.xml", "//text");
assertEquals(2, result.getSize());
String item = result.getResource(0).getContent().toString();
assertXMLEqual("<text> </text>", item);
item = result.getResource(1).getContent().toString();