Michal Warecki wrote
>
>
>
> count(/order/item)
>
>
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
Thanks Michal.
This works.
--
View this message in context:
http://camel.465427.n5.nabble.com/Node-count-in-camel-tp5716946p5716999.html
Sent from the Camel - Users mailing list archive at Nabble.com.
If you want to store count result in header, why you use filtering?
This should work:
count(/order/item)
--
View this message in context:
http://camel.465427.n5.nabble.com/Node-count-in-camel-tp5716946p5716966.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hi Michal,
I am trying to give in the following manner:
count(/order/item)
It is not working. Where am i going wrong?
--
View this message in context:
http://camel.465427.n5.nabble.com/Node-count-in-camel-tp5716946p5716958.html
Sent from the Camel - Users mailing list archive at Nabble.co
There is "count" function in XPath. As I know Saxon can handle this function.
--
View this message in context:
http://camel.465427.n5.nabble.com/Node-count-in-camel-tp5716946p5716948.html
Sent from the Camel - Users mailing list archive at Nabble.com.