camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Jeppesen <jeppyi...@gmail.com>
Subject Re: Set Header using xpath
Date Thu, 25 Feb 2016 16:34:36 GMT
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 <pkrishnath@gmail.com> wrote:

> HI There,
>
> I am trying to set a header value using xpath with no luck (Camel 2.16.2)
>
> eg:
>
> .setHeader("scheduleId").xpath("//Schedule/@scheduleId", String.class)
>
> please advice
>
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Set-Header-using-xpath-tp5778202.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message