camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject how do I check conditions in XML DSL
Date Wed, 23 Apr 2014 12:52:08 GMT
I have a CSV file which contain following data:


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"

			<route id="route1">
				<from uri="file:E:\\bankappfiles\\received?delete=true" />
				<log message="Title Name [${body}]"/>
				<split stopOnException="true">						  
			      <tokenize token=","/>
			         <xpath resultType="java.lang.String">/value1</xpath>
				<process ref="fileProcessor" />

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message