result = service.queryResource( "strings.xml", "sum(/test/item/price)"); assertEquals("Query should return an empty set (wrong document)", 0, result.getSize());
	public void testNot() {		try {			XPathQueryService service = 				storeXMLStringAndGetQueryService("strings.xml", strings);						ResourceSet result =				service.queryResource(					"strings.xml",					"/test/string[not(@value)]");			assertEquals(2, result.getSize());			result =				service.queryResource(					"strings.xml",					"not(/test/abcd)");			assertEquals(1, result.getSize());			Resource r = result.getResource(0);			assertEquals("true", r.getContent().toString());						result =				service.queryResource(					"strings.xml",					"/test/string[not(@id)]");			assertEquals(3, result.getSize());			r = result.getResource(0);			assertEquals("<string>Hello World!</string>", r.getContent().toString());		} catch (XMLDBException e) {			System.out.println("testStrings(): XMLDBException: "+e);			fail(e.getMessage());		}	}