Re: xpath and header

2011-02-26 Thread bigbear
Thanks for the response. The XPathBuilder expects the content somewhere. I was not sure where I can provide that in a Router. Instead, I settled for this: .setHeader("abc", ns.xpath("//@event", String.class)) Thanks! On Fri, Feb 25, 2011 at 11:40 PM, Pham Ngoc Hai wrote: > Can you try: > .se

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:27 PM > Hi, > > I am trying to s