You can use the in:header() XPath function provided by Camel to access an IN message header.
For example: contains(in:header('CamelFileName'), 'foo') Or combine it with any other XPath function like starts-with, matches, etc. The Camel XPath documentation page describes this function and others. And it also explains how to enable Saxon if you need XPath 2.0 functions. Regards, Raúl. On 5 Sep 2013 14:44, "luixv" <luisman...@gmail.com> wrote: > We are developing an application which uses active mqueue and apache camel > as > router. This application is getting .html files as input (this files are > NOT > xml compliant). Depending on the prefix of the filename I have to route the > file to different process. Actually the pattern "message router" <choice> / > <when> does what I am looking for. The problem is the switch works over an > xpath expression. > > Then my question is: Is possible to access / apply the filename in a Xpath > expression? If yes then how? if not then how can I cope this problem? > > Thanks! > v > Luix > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-message-router-tp5738769.html > Sent from the Camel - Users mailing list archive at Nabble.com. >