On Thu, Jun 14, 2012 at 1:21 PM, Andreas A. <andreasasm...@gmail.com> wrote:

> Claus can you provide an example of the @Xpath-annotation where a namespace
> is specified?
>
>
Camel in Action book, chapter 4, section 4.5.4.

And the Camel docs as well, see
http://camel.apache.org/xpath.html

eg a tip is to just type @xpath in the search box on the Camel front page,
and read the links.




> 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.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to