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 5BD0C9974 for ; Thu, 8 Dec 2011 12:52:45 +0000 (UTC) Received: (qmail 17150 invoked by uid 500); 8 Dec 2011 12:52:45 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 17089 invoked by uid 500); 8 Dec 2011 12:52:45 -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 17079 invoked by uid 99); 8 Dec 2011 12:52:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2011 12:52:44 +0000 X-ASF-Spam-Status: No, hits=-1.0 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of raul@fusesource.com designates 74.125.245.90 as permitted sender) Received: from [74.125.245.90] (HELO na3sys010aog111.obsmtp.com) (74.125.245.90) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2011 12:52:36 +0000 Received: from mail-gx0-f181.google.com ([209.85.161.181]) (using TLSv1) by na3sys010aob111.postini.com ([74.125.244.12]) with SMTP ID DSNKTuCy/43WP3kw4bIGKHKeulGHHH8dkhsH@postini.com; Thu, 08 Dec 2011 04:52:16 PST Received: by mail-gx0-f181.google.com with SMTP id r1so2533070ggn.12 for ; Thu, 08 Dec 2011 04:52:15 -0800 (PST) Received: by 10.182.193.33 with SMTP id hl1mr647619obc.2.1323348735143; Thu, 08 Dec 2011 04:52:15 -0800 (PST) References: <1323290709125-5056913.post@n5.nabble.com> From: Raul Kripalani In-Reply-To: Mime-Version: 1.0 (1.0) Date: Thu, 8 Dec 2011 12:52:12 +0000 Message-ID: <-4759013558684844943@unknownmsgid> Subject: Re: How do I use xpath functions in Camel? To: "users@camel.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Yes, it does. On 7 Dec 2011, at 22:15, MichaelAtSAG wrote: > Hi Raul, > > I am away for computer, but I am running the latest version of Camel at 2.8.3. > > Many other context files work, yet this one fails with the error shown initially. It fails when running in Eclipse or from maven. > > Does that simple set xpath command work on your system? > > Michael > > On Dec 7, 2011, at 2:21 PM, "Raul Kripalani [via Camel]" wrote: > >> Can you test that very particular example on your Camel installation? Make >> sure you add the resultType attribute on the xpath element, i.e. >> resultType="java.lang.String". Otherwise it is assumed that the result will >> be a NodeList which it isn't in this case. >> >> It looks like we may have lost the culprit of this error due to >> oversimplification of the example for posting. >> >> On the other hand, if it actually fails on your environment, please post >> the version of Camel you are running on and more details of the environment >> ;) >> >> On 7 December 2011 20:45, MichaelAtSAG <[hidden email]> wrote: >> >>> I receive errors when trying to use xpath functions. My example below is >>> simplified, but I want to use an xpath expression to set a header property >>> in the Camel Spring XML context, like this: >>> >>> Camel context: >>> ----- >>> >>> >>> >>> string(315) >>> >>> >>> >>> >>> >>> Error: >>> ----- >>> org.apache.camel.builder.xml.InvalidXPathExpression: Invalid xpath: >>> string(315). Reason: javax.xml.xpath.XPathExpressionException >>> >>> How do I write this xpath expression in Camel? >>> >>> Any help is greatly appreciated. >>> >>> Thanks! >>> >>> -- >>> View this message in context: >>> http://camel.465427.n5.nabble.com/How-do-I-use-xpath-functions-in-Camel-tp5056913p5056913.html >>> Sent from the Camel - Users mailing list archive at Nabble.com. >>> >> >> >> If you reply to this email, your message will be added to the discussion below: >> http://camel.465427.n5.nabble.com/How-do-I-use-xpath-functions-in-Camel-tp5056913p5057005.html >> To unsubscribe from How do I use xpath functions in Camel?, click here. >> NAML > > > -- > View this message in context: http://camel.465427.n5.nabble.com/How-do-I-use-xpath-functions-in-Camel-tp5056913p5057152.html > Sent from the Camel - Users mailing list archive at Nabble.com.