XQueryService service = (XQueryService) col.getService( "XQueryService", "1.0" );
XPathQueryServiceImpl service = (XPathQueryServiceImpl) col.getService( "XPathQueryService", "1.0" );
	public static void main(String[] args) throws Exception {		Class cl = Class.forName( driver );		Database database = (Database) cl.newInstance();		database.setProperty( "create-database", "true" );		DatabaseManager.registerDatabase( database );		Collection col =			DatabaseManager.getCollection( URI + "/db", "admin", "" );		XMLResource res = (XMLResource)col.createResource("test.xml", "XMLResource");		res.setContent(data);		col.storeResource(res);				// get query-service		XQueryService service =			(XQueryService) col.getService( "XQueryService", "1.0" );				// set pretty-printing on		service.setProperty( OutputKeys.INDENT, "yes" );		service.setProperty( OutputKeys.ENCODING, "UTF-8" );				ResourceSet set = service.query("/book/chapter");		res = (XMLResource) set.getResource(0);		set = service.query(res, "title");		res = (XMLResource) set.getResource(0);		System.out.println(res.getContent());	}