Package org.jaxen.dom4j

Examples of org.jaxen.dom4j.Dom4jXPath


   
    public void testSyntaxException() throws JaxenException {
       
        String path = "/row/[some_node='val1']|[some_node='val2']";
        try {
            new Dom4jXPath(path);
            fail("Allowed union of non-node-sets");
        }
        catch (XPathSyntaxException success) {
            assertNotNull(success.getMessage());
        }
View Full Code Here


     * @param xpathString The expression.
     * @return The {@link XPath}.
     * @throws JaxenException If there was a problem parsing the {@code xpathString} expression.
     */
    private XPath createXPath(final String xpathString) throws JaxenException {
        final XPath xpath = new Dom4jXPath(xpathString);
        xpath.setNamespaceContext(namespaceContext);
        return xpath;
    }
View Full Code Here

        return valueOf(node);
    }

    protected static XPath parse(String text) {
        try {
            return new Dom4jXPath(text);
        } catch (JaxenException e) {
            throw new InvalidXPathException(text, e.getMessage());
        } catch (RuntimeException e) {
        }
View Full Code Here

/* 353 */     return valueOf(node);
/*     */   }
/*     */
/*     */   protected static org.jaxen.XPath parse(String text) {
/*     */     try {
/* 358 */       return new Dom4jXPath(text);
/*     */     } catch (JaxenException e) {
/* 360 */       throw new InvalidXPathException(text, e.getMessage()); } catch (Throwable t) {
/*     */     }
/* 362 */     throw new InvalidXPathException(text, t);
/*     */   }
View Full Code Here

TOP

Related Classes of org.jaxen.dom4j.Dom4jXPath

Copyright © 2018 www.massapicom. 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.