Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 10E0E6280 for ; Sat, 30 Jul 2011 01:32:00 +0000 (UTC) Received: (qmail 17686 invoked by uid 500); 30 Jul 2011 01:31:57 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 17467 invoked by uid 500); 30 Jul 2011 01:31:57 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 17454 invoked by uid 99); 30 Jul 2011 01:31:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Jul 2011 01:31:56 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hippo.mailbox@gmail.com designates 74.125.82.195 as permitted sender) Received: from [74.125.82.195] (HELO mail-wy0-f195.google.com) (74.125.82.195) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Jul 2011 01:31:49 +0000 Received: by wyg8 with SMTP id 8so581082wyg.6 for ; Fri, 29 Jul 2011 18:31:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=EJ/1ioinm4mtEuPDqgyEr+CQNl8otI78WIcnQHSIkcE=; b=oARA1I/Vjo2jJiQcqUV2vPUZ4+hW0Ng3y//jSNZvv65Ke+puNbm8JuG/2oimI0mXct /Hb6SVpa9Z25OqliMzEfhfvIBcqQzcOmFccCWTowhkmnQTasSs7f6jSKlwoZ7MdMzFdX vh+WamkoDzoI4LyogwO+nhKD63apxJjQ0pHPI= Received: by 10.227.9.157 with SMTP id l29mr2918689wbl.39.1311989489088; Fri, 29 Jul 2011 18:31:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.20.148 with HTTP; Fri, 29 Jul 2011 18:31:09 -0700 (PDT) In-Reply-To: References: From: Hippo Man Date: Fri, 29 Jul 2011 21:31:09 -0400 Message-ID: Subject: [jxpath] Passing casting information within a path-based setter? To: JXPath Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Jul 29, 2011 at 20:43, Hippo Man wrote: > > Am I out of luck? I just thought of another idea. Can I perhaps use some sort of custom function for this purpose? For example: context.createPathAndSetValue("/myCastFunc(\"/dataArray[1]\", \"TheChild\")/varString", "quack"); ... or something like that, where "myCastFunc" is a custom-written function that will take the supplied xpath and cast it to the class named as the second argument. Would something like this work for me? -- =A0hippo.mailbox@gmail.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org