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 95F996F55 for ; Mon, 16 May 2011 09:52:17 +0000 (UTC) Received: (qmail 84632 invoked by uid 500); 16 May 2011 09:52:16 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 84552 invoked by uid 500); 16 May 2011 09:52:15 -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 84544 invoked by uid 99); 16 May 2011 09:52:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 May 2011 09:52:15 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [193.49.225.19] (HELO smtp01.univ-lille1.fr) (193.49.225.19) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 May 2011 09:52:07 +0000 Received: from smtps2.univ-lille1.fr (smtps2.univ-lille1.fr [193.49.225.53]) by smtp01.univ-lille1.fr (8.14.3/8.14.3) with ESMTP id p4G9phVB015566; Mon, 16 May 2011 11:51:43 +0200 Received: from 193-49-212-241.lille.inria.fr (193-49-212-241.lille.inria.fr [193.49.212.241] (may be forged)) (authenticated bits=0) by smtps2.univ-lille1.fr (8.14.3/8.14.3/Debian-5) with ESMTP id p4G9pipT017901 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 16 May 2011 11:51:45 +0200 From: Romain Rouvoy Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Mon, 16 May 2011 11:51:42 +0200 Subject: [jxpath] Navigating across Lists To: user@commons.apache.org Message-Id: Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) X-USTL-MailScanner-Information: Please contact the ISP for more information X-USTL-MailScanner-ID: p4G9phVB015566 X-USTL-MailScanner: Found to be clean X-USTL-MailScanner-From: romain.rouvoy@lifl.fr X-Old-Spam-Status: No Hi, I'm using JXPath to query a graph of beans, which are heavily using = lists, e.g.: > public class A { > List getB() {...} > } >=20 > public class B { > String getName() {...} > List getC() {...} > } >=20 > public class C { > String getName() {...} > } However, when I'm querying this graph of beans, the following request = does not match any elements (while it should return several elements): > org.apache.commons.jxpath.JXPathContext.newContext(new A()); > context.getValue("b[@name=3D'foo']/c/name"); Any idea? Does JXPath support navigation within lists? Thanks for you help, Romain= --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org