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