Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C3F8C6495 for ; Tue, 24 May 2011 17:43:53 +0000 (UTC) Received: (qmail 3055 invoked by uid 500); 24 May 2011 17:43:53 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 3022 invoked by uid 500); 24 May 2011 17:43:53 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 3014 invoked by uid 99); 24 May 2011 17:43:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 May 2011 17:43:53 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 May 2011 17:43:47 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QOvde-0005uj-2q for users@camel.apache.org; Tue, 24 May 2011 10:43:26 -0700 Date: Tue, 24 May 2011 10:43:26 -0700 (PDT) From: boday To: users@camel.apache.org Message-ID: <1306259006082-4422851.post@n5.nabble.com> In-Reply-To: <1306251938571-4422502.post@n5.nabble.com> References: <1306244886029-4422095.post@n5.nabble.com> <1306251938571-4422502.post@n5.nabble.com> Subject: Re: @XPath for an Integer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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.