Examples of XQueryService


Examples of org.xmldb.api.modules.XQueryService

        assertEquals("XPath: " + query, 1, result.getSize());
    }

    @Test
    public void starAxisConstraints3() throws XMLDBException {
        final XQueryService service =
                storeXMLStringAndGetQueryService("namespaces.xml", namespaces);
        service.setNamespace("t", "http://www.foo.com");

        final String query =  "// * [ . = 'Test Document' ]";
        final ResourceSet result = service.queryResource("namespaces.xml", query);
        System.out.println("testStarAxisConstraints3 : ========");
        printResult(result);
        assertEquals("XPath: " + query, 1, result.getSize());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.