storeXMLStringAndGetQueryService("nested2.xml", nested2); queryResource(service, "nested2.xml", "(<a/>, <b/>, <c/>)/following-sibling::*", 0); } catch (XMLDBException e) {
storeXMLStringAndGetQueryService("siblings.xml", siblings); service.setProperty(OutputKeys.OMIT_XML_DECLARATION, "yes"); service.setProperty(OutputKeys.INDENT, "no"); ResourceSet result = queryResource(service, "siblings.xml", " assertXMLEqual("<a><s>Z</s><n>4</n></a>", result.getResource(0).getContent().toString()); result = queryResource(service, "siblings.xml", " assertXMLEqual("<a><s>Z</s><n>4</n></a>", result.getResource(0).getContent().toString()); result = queryResource(service, "siblings.xml", " assertXMLEqual("<a><s>C</s><n>5</n></a>", result.getResource(0).getContent().toString()); result = queryResource(service, "siblings.xml", " assertXMLEqual("<a><s>C</s><n>5</n></a>", result.getResource(0).getContent().toString());  queryResource(service, "siblings.xml", "(<a/>, <b/>, <c/>)/following-sibling::*", 0); } catch (Exception e) { e.printStackTrace();
    public void testPrecedingSiblingAxis() {        try {            XQueryService service =                 storeXMLStringAndGetQueryService("nested2.xml", nested2);                        queryResource(service, "nested2.xml", "(<a/>, <b/>, <c/>)/following-sibling::*", 0);        } catch (XMLDBException e) {            fail(e.getMessage());        }    }     