I don't think Camel xpath[1] can provide the function that you want. You can use a bean method [2] with @Xpath annotation to do that kind of job. [1]http://camel.apache.org/xpath.html [2]http://camel.apache.org/bean-language.html
-- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: willemjiang On Tuesday, October 23, 2012 at 1:45 AM, German O wrote: > 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 > (http://Nabble.com).
