Re: Set Header using xpath

2016-03-09 Thread krish_p
Hi Claus, My XML has a namespace without a prefix. Is that causing the issue then? -- View this message in context: http://camel.465427.n5.nabble.com/Set-Header-using-xpath-tp5778202p5778761.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Set Header using xpath

2016-02-27 Thread Claus Ibsen
Hi Take a look at this page http://camel.apache.org/xpath And especially about "auditing namespace to aid debugging" On Sat, Feb 27, 2016 at 7:15 AM, krish_p wrote: > My XML does not have nay namespace !! > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Set-Heade

Re: Set Header using xpath

2016-02-26 Thread krish_p
My XML does not have nay namespace !! -- View this message in context: http://camel.465427.n5.nabble.com/Set-Header-using-xpath-tp5778202p5778344.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Set Header using xpath

2016-02-25 Thread Michael Jeppesen
Here's how I'm doing it in my route: .setHeader(Exchange.FILE_NAME, namespace.xpath(FILENAME_XPATH, String.class)) Hope that helps. On Wed, Feb 24, 2016 at 5:25 AM, krish_p wrote: > HI There, > > I am trying to set a header value using xpath with no luck (Camel 2.16.2) > > eg: > > .setHeader("