Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 28393 invoked from network); 16 Oct 2007 13:55:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Oct 2007 13:55:35 -0000 Received: (qmail 54809 invoked by uid 500); 16 Oct 2007 13:55:19 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 54654 invoked by uid 500); 16 Oct 2007 13:55:19 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 54645 invoked by uid 99); 16 Oct 2007 13:55:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2007 06:55:19 -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 ecko.nfs@gmail.com designates 66.249.90.182 as permitted sender) Received: from [66.249.90.182] (HELO ik-out-1112.google.com) (66.249.90.182) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2007 13:55:22 +0000 Received: by ik-out-1112.google.com with SMTP id c29so1367695ika for ; Tue, 16 Oct 2007 06:55:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:reply-to:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding:from; bh=fBShvEymHV+HmsHxNOdXWiMIYfoTKyc99a6WsvaLmII=; b=r0pRvOe9oX8vtBeBeuJnDIoqw09ztSTqNVnFEZ5SqnhSCN9dXxo5EuOCyqDL/mFkwY7irxpPGK1YePMOBof3WM6dnhGiqYsQEZi/sXuIVm79AmC6WvVRa2uefOxPES3iGM26rKUpDVAVQc1kEUe+nBihyE2E/auMJpv6akDymPs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:reply-to:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding:from; b=N8a1i0OI2dj+9zsijcJ7IAyY+kfR9MG8aSy4FG6FtLjdgnXseZV955CMGag6mRRlkWRpryy5ClyIu2ekmmHkFk/UCSbaY323GzunCRB14PN8GnNe7nwSxoKpmCs5RSBJZ/vLFCylc00B+t2Y7xZyp6qC3ZpmBvXQNhUC+oyOd2o= Received: by 10.150.154.6 with SMTP id b6mr1316314ybe.1192542899371; Tue, 16 Oct 2007 06:54:59 -0700 (PDT) Received: from ?10.3.1.80? ( [194.11.171.4]) by mx.google.com with ESMTPS id f4sm1231445nfh.2007.10.16.06.54.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 16 Oct 2007 06:54:57 -0700 (PDT) Message-ID: <4714C252.402@eckenfellner.net> Date: Tue, 16 Oct 2007 15:53:22 +0200 Reply-To: developer@eckenfellner.net User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: Reading XML as bean collection using Betwixt References: <4714A779.2050501@celoxis.com> In-Reply-To: <4714A779.2050501@celoxis.com> X-Enigmail-Version: 0.95.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit From: Eckenfellner Klaus X-Virus-Checked: Checked by ClamAV on apache.org Does your collection-bean have adder-functions for the person-beans? please see example at http://commons.apache.org/betwixt/guide/examples.html (bottom of page). Ravindra Wankar wrote: > > How do I convert an XML to bean collection? > > XML: > > > A > 21 > > > B > 25 > > > C > 32 > > > > Java code: > > beanReader.registerBeanClass("persons", ArrayList.class); > beanReader.registerBeanClass("persons/person", Person.class); > ArrayList persons = (ArrayList)beanReader.parse(xmlReader); > > I get an empty list. I'm using Betwixt 0.8, Digester 1.8, BeanUtils 1.7 > > Thanks > - Ravi. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > For additional commands, e-mail: user-help@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org