I have a CSV file which contain following data: value1=A,value1=B
My requirement is that : if value1=A then go to fileA if value1=B then go to fileB I want to do this using XML DSL. I am attaching here with my code snippet,by which I can not check the conditions by using xpath. How do I write this xpath expression in Camel? Any help is greatly appreciated. Thanks in advance! <routeContext id="actionRoutes" xmlns="http://camel.apache.org/schema/spring"> <route id="route1"> <from uri="file:E:\\bankappfiles\\received?delete=true" /> <log message="Title Name [${body}]"/> <split stopOnException="true"> <tokenize token=","/> <choice> <when> <xpath resultType="java.lang.String">/value1</xpath> </when> </choice> </split> <process ref="fileProcessor" /> </route> </routeContext> -- View this message in context: http://camel.465427.n5.nabble.com/how-do-I-check-conditions-in-XML-DSL-tp5750490.html Sent from the Camel - Users mailing list archive at Nabble.com.