Claus can you provide an example of the @Xpath-annotation where a namespace is specified?
I have this issue https://issues.apache.org/jira/browse/CAMEL-3155 and I believe that Ashwin's and your answer in this thread should solve the problem. I'm using Camel 2.4.0 w. Spring DSL and tried Ashwin's solution however the path is not recognized. I think it might be a problem because I'm using a CamelContext in one file and importing a RouteContext in another. I've tried defining the namespace in the beans-tag in each and both at the same time. org.apache.camel.builder.xml.InvalidXPathExpression: Invalid xpath: /myns:myroot/myelement/@Attrib. Reason: javax.xml.xpath.XPathExpressionException. -- View this message in context: http://camel.465427.n5.nabble.com/XPath-namespaces-in-Spring-DSL-tp4556826p5714479.html Sent from the Camel - Users mailing list archive at Nabble.com.