camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alapaka <>
Subject Re: How can I avoid setting namespace prefixes in xpath expressions in camel?
Date Thu, 31 Oct 2013 22:01:12 GMT
you can set the namespace prefixes at route level and just use the prefix
anywhere in that route.

off the top of my head I don't know the java DSL for it, but in xml you do:

<route id="myroute" xmlns:nsprefix="">
<setHeader headerName="my_header">

and of course you can specify multiple namespaces

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message