Re: xpath and header

2011-02-26 Thread bigbear
rote: > Can you try: > .setHeader("abc", XPathBuilder.xpath("/c:msg@event", > String.class).namespace(ns)) > > Regards, > Ngoc Hai > > --- On Fri, 2/25/11, bigbear wrote: > > > From: bigbear > > Subject: xpath and header > > To: user

Re: xpath and header

2011-02-25 Thread Pham Ngoc Hai
Can you try: .setHeader("abc", XPathBuilder.xpath("/c:msg@event", String.class).namespace(ns)) Regards, Ngoc Hai --- On Fri, 2/25/11, bigbear wrote: > From: bigbear > Subject: xpath and header > To: users@camel.apache.org > Date: Friday, February 25, 2011, 11

xpath and header

2011-02-25 Thread bigbear
Hi, I am trying to set the result of an xpath expression evaluation in the header and it is failing: from("jms:topic:someTopic") .setHeader("abc", xpath("/c:msg@event", String.class, ns)) Getting this error: The method xpath(String) in the type BuilderSupport is not applicable fo