Stu, I see the issue, the value is evaluated to Double.NaN and then the type
converter further converts it to a primitive int (which defaults to 0,
instead of null).

I logged this JIRA to check for Double.NaN and return null instead of
0...https://issues.apache.org/jira/browse/CAMEL-4011


Stu.C wrote:
> 
> b) is it possible to return a null instead when the element doesn't exist,
> as zero could be a valid value?
> 


-----
Ben O'Day
IT Consultant -http://benoday.blogspot.com

--
View this message in context: 
http://camel.465427.n5.nabble.com/XPath-for-an-Integer-tp4422095p4422851.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to