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.

Reply via email to