camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dalewking <dalewk...@gmail.com>
Subject Re: Node count in camel
Date Fri, 16 Aug 2013 15:48:10 GMT
Michal Warecki wrote
> <setHeader headerName="itemCount">
>     
> <xpath resultType="java.lang.String">
> count(/order/item)
> </xpath>
> </setHeader>

Apparently the secret part of that is the resultType="java.lang.String".
With it, it works. Without it you get the very misleading:

org.apache.camel.builder.xml.InvalidXPathExpression - Invalid xpath:
count(/order/item)



--
View this message in context: http://camel.465427.n5.nabble.com/Node-count-in-camel-tp5716946p5737422.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message