Package org.apache.servicemix.expression

Examples of org.apache.servicemix.expression.JAXPStringXPathExpression


            assertExpression(new JAXPStringXPathExpression("$name"), "James", "<foo><bar xyz='cheese'/></foo>");
        }
    }

    public void testUsingJavaExtensions() throws Exception {
        JAXPStringXPathExpression exp = new JAXPStringXPathExpression();
        exp.setXPath("java:org.apache.servicemix.expression.JAXPXPathExpressionTest.func(string(/header/value))");
        DefaultNamespaceContext namespaceContext = new DefaultNamespaceContext();
        namespaceContext.add("java", "http://xml.apache.org/xalan/java");
        exp.setNamespaceContext(namespaceContext);
        exp.setFunctionResolver(new XPathFunctionResolverImpl());
        assertExpression(exp, "modified12", "<header><value>12</value></header>");
    }
View Full Code Here

TOP

Related Classes of org.apache.servicemix.expression.JAXPStringXPathExpression

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.