Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 3615 invoked from network); 18 Aug 2008 17:38:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Aug 2008 17:38:43 -0000 Received: (qmail 10476 invoked by uid 500); 18 Aug 2008 17:38:37 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 10427 invoked by uid 500); 18 Aug 2008 17:38:37 -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 10416 invoked by uid 99); 18 Aug 2008 17:38:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Aug 2008 10:38:37 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of hfinster@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 18 Aug 2008 17:37:38 +0000 Received: (qmail invoked by alias); 18 Aug 2008 17:38:05 -0000 Received: from p5B395DA7.dip.t-dialin.net (EHLO [91.57.93.167]) [91.57.93.167] by mail.gmx.net (mp043) with SMTP; 18 Aug 2008 19:38:05 +0200 X-Authenticated: #8101941 X-Provags-ID: V01U2FsdGVkX1/YJvpJQNvYyouqlWbggCB1IItd3d1qdrzNbqsneQ F5EHx04nqHdoEL Message-ID: <48A9B4E3.6090209@gmx.de> Date: Mon, 18 Aug 2008 19:44:03 +0200 From: Harald Finster User-Agent: Thunderbird 2.0.0.6 (X11/20070801) MIME-Version: 1.0 To: Commons Users List Subject: Re: [JXPATH] getting Containers in iteration (additional info) References: <714249.46090.qm@web55105.mail.re4.yahoo.com> In-Reply-To: <714249.46090.qm@web55105.mail.re4.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.62 X-Virus-Checked: Checked by ClamAV on apache.org Dear Matt, dear list-members, thank you very much for your kind reply. Matt Benson wrote: > Remember that JXPath more or less exposes the Java > object graph as an XML document, so the rules it uses > to do so may seem somewhat arbitrary. yes, that's clear. I had (little) hope, that this arbitrariness might be configurable in some way, but I am certainly asking too much. (And I don't want to belittle the value of jxpath in any way, it is a great tool.) > There are some > comments at > https://issues.apache.org/jira/browse/JXPATH-86 > relating to the idea of reading the list property > directly. Thank you for this. The article makes the point very clear. > With regard to maps, > the decision was made "in the beginning" to implement > JXPath such that Maps are exposed as bare objects; > note that a Map is not a collection. Consider that > unless a Map's keys are Strings there is no guarantee > that a reasonable path step could be interpolated for > a given Map entry; this is probably the most direct > reason I could speculate for the decision not to > handle Maps in any special way in JXPath. > sounds absolutely plausible - yes. >>> asking dump questions. (At least I had a look at "dump" I should learn to write English ;-) Bottom line: I will write some kind of 'post-processing'. Again, thanks for your enlightening comments. Harald -- Dr.-Ing. Harald Finster / Aachen Germany http://www.finster-stahlart.de industrial history and architecture http://www.astrid-aix.de gallery: watercolours and oil paintings --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org