Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 39817 invoked from network); 24 May 2006 19:15:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 May 2006 19:15:54 -0000 Received: (qmail 99063 invoked by uid 500); 24 May 2006 19:15:45 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 98918 invoked by uid 500); 24 May 2006 19:15:44 -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 98854 invoked by uid 99); 24 May 2006 19:15:44 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 May 2006 12:15:44 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of seth.holth@gmail.com designates 66.249.92.169 as permitted sender) Received: from [66.249.92.169] (HELO ug-out-1314.google.com) (66.249.92.169) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 May 2006 12:15:43 -0700 Received: by ug-out-1314.google.com with SMTP id m3so2270622uge for ; Wed, 24 May 2006 12:15:22 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=LhPagBpOgLDSHdFmmvepnrs+et/y+tiQKBC8pulpMS0xoEJWLDNnZjNNWirhAYbapesuugiR7QsaGnEGP5WF6o6ttfe8fqa4LgHqOiegrx53HT9Z4szPGzdwTJ4IzMNTG/BfRw01hmKFdgQw2X251Athjh3roCXJJ8CiIf9jdT0= Received: by 10.67.96.14 with SMTP id y14mr5952915ugl; Wed, 24 May 2006 12:15:22 -0700 (PDT) Received: by 10.66.234.2 with HTTP; Wed, 24 May 2006 12:15:22 -0700 (PDT) Message-ID: <5370f2820605241215q6c7da3f7k41a3de52021545fb@mail.gmail.com> Date: Wed, 24 May 2006 21:15:22 +0200 From: "s[e]th & h[o]lth" To: "Jakarta Commons Users List" Subject: Re: [digester] Retrieving two child-nodes In-Reply-To: <43236.141.22.10.180.1148488743.squirrel@webmail.schliesing.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_98729_24205213.1148498122028" References: <43236.141.22.10.180.1148488743.squirrel@webmail.schliesing.de> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_98729_24205213.1148498122028 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I don't remember excatly what you've to do but this articlei= s a very good entry point to this exercise. Good luck ! On 5/24/06, Sven Schliesing wrote: > > Hi, > > I'm having a xml-file like this: > ------ > > > > > > parsing it with this snippet: > ------ > Digester digester =3D new Digester(); > digester.setValidating(false); > digester.addObjectCreate("users/user", IrcUser.class); > digester.addSetProperties("users/user"); > try { > IrcUser ircUser =3D (IrcUser) digester.parse(configFile); > System.out.println(ircUser); > } catch (IOException e) { > throw new ModuleException(e); > } catch (SAXException e) { > throw new ModuleException(e); > } > ------ > > The output I get is: > ------ > Mary > ------ > > How do I get the Object for "John", too? > > Thanks in advance! > > Sven > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > ------=_Part_98729_24205213.1148498122028--