Hi

What version of Camel are you using?
And how do you load those xml files?


On Thu, Aug 28, 2014 at 4:02 PM, tonytt <[email protected]> wrote:
> Hello everybody,
> I am not very experienced on camel, but we started a project a few months
> ago so I am starting to familiarize with it.
> Right now, we have  a problem with namespaces and Xpath resolution. The
> problem is easy to state, but the context isn't:
> We are using camel and spring, spring being configured through Java (so no
> xml, just @Configuration annotations). Camel context is created in as
>
>
>
> Now, you surelly have seen the XmlRouteBuilder. This is a class developed by
> us which just reads xml files having a <routes> tag into a RoutesDefinition,
> and adding them to Camel context.
> So, we create camel context via java, but write routes via spring xml files.
>
> The problem arises when we want to use Xpath with namespaces in our routes.
> I have seen many times that the namespace should be configured in spring xml
> file (which we dont have), either on <beans> or in <CamelContext> tags.
> Again, we don't have any of these tags. We should be able to configure it
> somewhere in the SpringCamelContext object, or in the <routes> tag... but I
> couldn't find any solution. Do you have any suggestion?
>
> Thanks
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Xpath-and-namespaces-in-hybrid-camel-context-tp5755823.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to