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 4DC0D767C for ; Tue, 9 Aug 2011 17:59:24 +0000 (UTC) Received: (qmail 76111 invoked by uid 500); 9 Aug 2011 17:59:23 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 76071 invoked by uid 500); 9 Aug 2011 17:59:23 -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 Delivered-To: moderator for users@camel.apache.org Received: (qmail 74716 invoked by uid 99); 9 Aug 2011 17:57:29 -0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of prerna.kaul@citi.com does not designate 216.139.236.26 as permitted sender) Date: Tue, 9 Aug 2011 10:57:02 -0700 (PDT) From: klua To: users@camel.apache.org Message-ID: <1312912622678-4682976.post@n5.nabble.com> Subject: Camel Splitter with Xpath recognizes namespace, but returns null MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am using Camel's Spring DSL, to write a simple application, that takes xml, and splits it based on the xpath. It should be pretty straightforward; there is only one extra step that I have, which is declaring a namespace. The problem is that although xpath recognizes the element that I'm looking for, it returns a null for the value. Here's a sample xml, to give you a general idea of what I'm doing. (Notice that it has an associated namespace) 1 2 Here's my route: /foo:foo/foo:bar/ As I mentioned before, I declare the namespace, in the bean context of spring. And I get the expected number of results from xpath, but null values. Any idea where I'm going wrong? Any help would be greatly appreciated! Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Splitter-with-Xpath-recognizes-namespace-but-returns-null-tp4682976p4682976.html Sent from the Camel - Users mailing list archive at Nabble.com.