@Test public void testSelectSingleTextItem_Xpath2_Saxon() throws Exception { XPath xpath = new XPath(); Document d = XmlHelper.createDocument(XML, DocumentBuilderFactoryBuilder.newInstance()); assertEquals("test", xpath.selectSingleTextItem(d, " }
public String selectSingleTextItem(Node context, String xpath) throws XPathExpressionException { return (String) createXpath().evaluate(xpath, context, XPathConstants.STRING); }
XPath { public String selectSingleTextItem(Node context, String xpath) throws XPathExpressionException { return (String) createXpath().evaluate(xpath, context, XPathConstants.STRING); } }
XPath { public String selectSingleTextItem(Node context, String xpath) throws XPathExpressionException { return (String) createXpath().evaluate(xpath, context, XPathConstants.STRING); } XPath();  XPath(NamespaceContext ctx);  XPath(NamespaceContext ctx, XPathFactory factory); }
XPath { public String selectSingleTextItem(Node context, String xpath) throws XPathExpressionException { return (String) createXpath().evaluate(xpath, context, XPathConstants.STRING); } XPath();  XPath(NamespaceContext ctx);  XPath(NamespaceContext ctx, XPathFactory factory); String selectSingleTextItem(Node context, String xpath); String[] selectMultipleTextItems(Node context, String xpath); NodeList selectNodeList(Node context, String xpath); Node selectSingleNode(Node context, String xpath); static XPathFactory newXPathFactory(); static XPath newXPathInstance(DocumentBuilderFactoryBuilder builder, NamespaceContext namespaceCtx); static XPath newXPathInstance(DocumentBuilderFactory builder, NamespaceContext namespaceCtx); }
XPath { public String selectSingleTextItem(Node context, String xpath) throws XPathExpressionException { return (String) createXpath().evaluate(xpath, context, XPathConstants.STRING); } XPath();  XPath(NamespaceContext ctx);  XPath(NamespaceContext ctx, XPathFactory factory); String selectSingleTextItem(Node context, String xpath); String[] selectMultipleTextItems(Node context, String xpath); NodeList selectNodeList(Node context, String xpath); Node selectSingleNode(Node context, String xpath); static XPathFactory newXPathFactory(); static XPath newXPathInstance(DocumentBuilderFactoryBuilder builder, NamespaceContext namespaceCtx); static XPath newXPathInstance(DocumentBuilderFactory builder, NamespaceContext namespaceCtx); static final String SYSPROP_USE_SAXON_XPATH; }