You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Robert Thullner <rt...@gmx.at> on 2007/12/21 14:57:54 UTC

Correct syntax for xpath filter

Hi
 
I am trying to implement a XPath filter for my components. But I think the
syntax that is provided on the website is not corrent
from("direct:start").

filter().xpath("/person[@name='James']").

to("mock:result");
When I try to write that in my Java Routes the filter() method is awaiting a
parameter (Predicate, ExpressionType or String,String)
I am using ActiveMQ 5.0. Is there some new syntax for the MessageFilter
pattern?
Thanks for help
Robert