String colstring = normalizeCollectionURI( (String)table.get(XMLTools.COLLECTION),
(String) table.get(XMLTools.LOCAL) );
String querystring = (String)table.get(XMLTools.QUERY);
XPathQueryService service = null;
ResourceIterator results = null;
col = DatabaseManager.getCollection( colstring );
if ( col == null ) {
System.out.println("ERROR : Collection not found!");
return false;
}
service = (XPathQueryService)col.getService("XPathQueryService","1.0");
addNamespaces(service, (String)table.get("namespaces"));
ResourceSet resultSet = service.query(querystring);
results = resultSet.getIterator();
while (results.hasMoreResources() ) {
XMLResource resource = (XMLResource)results.nextResource();
String documentstr = (String)resource.getContent();
System.out.println(documentstr);
}
} catch (Exception e) {