You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by dalewking <da...@gmail.com> on 2013/08/16 17:48:10 UTC

Re: Node count in camel

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.