Hi, I have a situation where I have to do a choice with an xpath, and
depending on the content of an xml tag, I need to do different things.
Xml:
*user*
other
*admin*
Ie:
<c:route>
<c:from uri="file://{{handshakeFolder}}" />
<c:choice>
<c:when>
<xpath>//a/b/text() start-with
"user"</xpath>
<to uri="direct:user-handshake" />
</c:when>
<c:when>
<xpath>//a/b/text() start-with
"admin"</xpath>
<to uri="direct:admin-handshake" />
</c:when>
</c:choice>
</c:route>
I couldn't find the way to do this...
Thanks.
--
View this message in context:
http://camel.465427.n5.nabble.com/Choice-with-xpath-tp5721410.html
Sent from the Camel - Users mailing list archive at Nabble.com.