Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

camel xpath

$
0
0
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>

and:

<choice>
<when>
<xpath headerName="RouteConfiguration"/key[0] = 'enabled'>/</xpath>

and it does not work
Any idea how to do that?

Thank you

Viewing all articles
Browse latest Browse all 5648

Trending Articles