THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
In 1.3 onwards you can easily use namespaces with XPath expressions using the Namespaces helper class.
Wiki Markup |
---|
{snippet:id=example|lang=java|url=activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/XPathWithNamespacesFilterTest.java} |
Code Block |
Namespaces ns = new Namespaces("c", "http://acme.com/cheese");
from("direct:start").filter().
xpath("/c:person[@name='James']", ns).
to("mock:result");
|
Variables
Variables in XPath is defined in different namespaces. The default namespace is http://activemq.apache.org/camel/schema/spring
.
...