The filter dsl element does not retrieve the xpath. It only decides to
let a message pass or not.
Btw. you xpath will not match your message as you wrote ab instead of abc.
Normally the filter does not contain additional elements it is just a
part in the route.
This way it would work. The filter would let your message pass and block
messages that do not match the filter.
<filter>
<xpath>/abc/person='JS'</xpath>
</filter>
<log message="Reading TEXT message from queue" />
<unmarshal ref="jaxb" />
<process ref="abcProcessor" />
Christian
Am 25.04.2012 23:19, schrieb johny0704:
Hi,
I am using XPath to retrieve the xml content and doing some validation but
it is not working, i appreciate if some one can help on this
<abc>
<person>JS</PERSON>
<abc>
<filter>
<xpath>/ab/person='JS'</xpath>
<log message="Reading TEXT message from queue" />
<unmarshal ref="jaxb" />
<process ref="abcProcessor" />
</filter>
--
View this message in context:
http://camel.465427.n5.nabble.com/Not-able-to-get-the-data-using-Xpath-tp5666006p5666006.html
Sent from the Camel Development mailing list archive at Nabble.com.
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
Talend Application Integration Division http://www.talend.com