Re: Node count in camel

2013-08-16 Thread dalewking
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

Re: Node count in camel

2012-08-08 Thread Deepthi
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.

Re: Node count in camel

2012-08-07 Thread michal.warecki
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.

Re: Node count in camel

2012-08-07 Thread Deepthi
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

Re: Node count in camel

2012-08-07 Thread michal.warecki
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.