This content has been marked as final.
Show 2 replies
-
1. Re: Message filter using DSL filter(xpath()) doesn't compile
njiang Feb 24, 2010 10:27 PM (in response to louis.naber)The route could be
from("jbi:endpoint:http://progress.com/demos/test/messageFilter/endpoint"). filter().expression().xpath("count(/test:world) = 1"). to("jbi:service:http://progress.com/demos/test/trace3");
-
2. Re: Message filter using DSL filter(xpath()) doesn't compile
davsclaus Feb 25, 2010 12:34 AM (in response to njiang)You dont nee the expression(() so you can do filter().xpath("xxx")
Notice xpath is now a method call.
In your example xpath was a parameter (eg inside ( )). To do that you need to static import the xpath method on the org.apache.camel.builder.xml.PathBuilder