Hi, I have a Camel route that reads from a queue containing XML messages e.g.
<MY_LIST> <MSG> <ID>1234</ID> </MSG> <SOURCE>source1</SOURCE> ... I want to process only messages of type MyList and where SOURCE=source1 I've written the filter for the check MyList.class and it works fine, but I don't know how to write the filter that checks the SOURCE tag. Any idea? from(inboundQueue) .routeId(id) .filter().body(MyList.class) .filter().body(MyList.getSource().equals("source1")) <-- Just some random code! .unmarshal(jaxb) .process(myProcessor) .log("Completed") -- View this message in context: http://camel.465427.n5.nabble.com/Filter-on-content-of-a-tag-tp5752705.html Sent from the Camel Development mailing list archive at Nabble.com.