Hi
On Fri, Apr 4, 2014 at 4:38 AM, Lydie <lprev...@completegenomics.com> wrote: > hello, > > Mt header has a herder called RouteConfiguration which contains xml ( as > string): > > <log message="***************** > ${headers.RouteConfiguration}***************" /> > > prints: > > ***************** <key>enabled</authorizationCheck>*************** > > > I am trying to use xpath totest the value of key > I have tried this: > <choice> > <when> > <xpath headerName="RouteConfiguration"/key = > 'enabled'>/</xpath> > You should have the xpath expression between the <xpath> tags. <xpath headerName="RouteConfiguration">/key = 'enabled'</xpath> > and: > > <choice> > <when> > <xpath headerName="RouteConfiguration"/key[0] > = 'enabled'>/</xpath> > > and it does not work > Any idea how to do that? > > Thank you > > > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/camel-xpath-tp5749754.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io