Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for createXPath (0.2 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/XPathAPI.java

    import org.w3c.dom.Node;
    
    public class XPathAPI {
    
        private final XPath xPath;
    
        public XPathAPI() {
            xPath = createXPath(f -> {});
        }
    
        public XPath createXPath(final Consumer<XPathFactory> builder) {
            try {
                final XPathFactory factory = XPathFactory.newInstance();
                builder.accept(factory);
                return factory.newXPath();
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformer.java

            }
        }
    
        protected XPathNodes getNodeList(final Document doc, final String xpath) throws XPathExpressionException {
            final XPath xPathApi = getXPathAPI().createXPath(f -> {});
            xPathApi.setNamespaceContext(new DefaultNamespaceContext(doc.getNodeType() == Node.DOCUMENT_NODE ? doc.getDocumentElement() : doc));
            return xPathApi.evaluateExpression(xpath, doc, XPathNodes.class);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:41:37 UTC 2024
    - 17.9K bytes
    - Viewed (0)
Back to top