Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 77814 invoked from network); 10 Feb 2006 05:08:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Feb 2006 05:08:24 -0000 Received: (qmail 54986 invoked by uid 500); 10 Feb 2006 05:08:18 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 54927 invoked by uid 500); 10 Feb 2006 05:08:17 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 54915 invoked by uid 99); 10 Feb 2006 05:08:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2006 21:08:17 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [210.86.15.187] (HELO mta205-rme.xtra.co.nz) (210.86.15.187) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2006 21:08:16 -0800 Received: from mta3-rme.xtra.co.nz ([210.86.15.140]) by mta205-rme.xtra.co.nz with ESMTP id <20060210050753.WMYR4186.mta205-rme.xtra.co.nz@mta3-rme.xtra.co.nz> for ; Fri, 10 Feb 2006 18:07:53 +1300 Received: from [10.1.1.6] ([222.152.105.130]) by mta3-rme.xtra.co.nz with ESMTP id <20060210050753.TCSQ14226.mta3-rme.xtra.co.nz@[10.1.1.6]> for ; Fri, 10 Feb 2006 18:07:53 +1300 Subject: Re: [digester] using xpath to select nodes From: Simon Kitching Reply-To: skitching@apache.org To: Jakarta Commons Users List In-Reply-To: References: Content-Type: text/plain Date: Fri, 10 Feb 2006 18:08:34 +1300 Message-Id: <1139548114.4231.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Thu, 2006-02-09 at 16:46 +0100, Valerio Schiavoni wrote: > Hello, > i have this kind of xml i want to parse: > > > > a url > > > > > > .... > > > > So in the digester i have this code (only relevant part ): > > digester.setRules(new ExtendedBaseRules()); > digester.addObjectCreate("website/pageclass[@name='news']/page", > Notizia.class.getName()); > > which doesn't work as I was supposing: when I try to peek the object on the > stack, i get a NPE. > So the question is: does digester support that kind of xpath expressions to > select nodes? No. None of the rule-matching implementations support XPath expressions. As this has been asked before, I've created a new FAQ entry; see the last entry in this page: http://wiki.apache.org/jakarta-commons/Digester/FAQ Regards, Simon --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org