camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Satyam Maloo <>
Subject Extract values from header in xpath in Spring DSL
Date Mon, 06 Jan 2014 06:50:23 GMT
Consider this xml :
  <book category="CHILDREN">
    <title>Harry Potter</title>
    <author>J K. Rowling</author>
  <book category="WEB">
    <title>Learning XML</title>
    <author>Erik T. Ray</author>

I have a set header the header after splitter as 

<camel:setHeader headerName="TEST">

Now after performing a few operations I want to find if the category in the
header TEST is CHILDREN, what should the following xpath be?

	Perform some operation

I am using camel 2.0.9,  so I if I use headerName in xpath, it throws error.
Kindly suggest what the xpath should be?

Satyam A Maloo
View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message