@Test public void testBuild() { assertEquals(XPathFactoryImpl.class, XPath.build(true).getClass()); assertNotSame(XPathFactoryImpl.class, XPath.build(false).getClass()); }
static XPathFactory build(boolean useSaxon) { if (useSaxon) { for (String clazz : SAXON_XPATH_FACTORIES) { try { return (XPathFactory) Class.forName(clazz).newInstance(); } catch (Exception e) { } } } return XPathFactory.newInstance(); }
XPath { static XPathFactory build(boolean useSaxon) { if (useSaxon) { for (String clazz : SAXON_XPATH_FACTORIES) { try { return (XPathFactory) Class.forName(clazz).newInstance(); } catch (Exception e) { } } } return XPathFactory.newInstance(); } }
XPath { static XPathFactory build(boolean useSaxon) { if (useSaxon) { for (String clazz : SAXON_XPATH_FACTORIES) { try { return (XPathFactory) Class.forName(clazz).newInstance(); } catch (Exception e) { } } } return XPathFactory.newInstance(); } XPath();  XPath(NamespaceContext ctx);  XPath(NamespaceContext ctx, XPathFactory factory); }
XPath { static XPathFactory build(boolean useSaxon) { if (useSaxon) { for (String clazz : SAXON_XPATH_FACTORIES) { try { return (XPathFactory) Class.forName(clazz).newInstance(); } catch (Exception e) { } } } return XPathFactory.newInstance(); } 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 { static XPathFactory build(boolean useSaxon) { if (useSaxon) { for (String clazz : SAXON_XPATH_FACTORIES) { try { return (XPathFactory) Class.forName(clazz).newInstance(); } catch (Exception e) { } } } return XPathFactory.newInstance(); } 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; }