commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <robertburrelldon...@blueyonder.co.uk>
Subject Re: Betwixt - convert XML to a bean Collection
Date Sun, 21 Aug 2005 10:34:28 GMT
i think that this is caused by a bug which has now been fixed. could you
try again using either the code from HEAD or a recent nightly?

- robert

On Fri, 2005-08-19 at 07:25 -0700, Cristiane Foga├ža wrote:
> Hi,
> 
> Does anybody know how to convert an XML to a
> Collection of beans?
> 
> Here is the XML that I have:
> 
> <ProjectReviews>
>   <ProjectReviewStatus>
>     <comments>new status with date</comments>
>     <createdBy>Cristiane</createdBy>
>     <createdOn>2005-08-18 13:32:17.562</createdOn>
>     <projectStatus>In Process</projectStatus>
>   </ProjectReviewStatus>
>   <ProjectReviewStatus>
>     <comments>another comment</comments>
>     <createdBy>Cristiane II</createdBy>
>     <createdOn>2005-08-18 13:32:17.562</createdOn>
>     <projectStatus>In Process</projectStatus>
>   </ProjectReviewStatus>
> </ProjectReviews>
> 
> 
> I'm trying to do something like this:
> beanReader.registerBeanClass("ProjectReviews",
> ArrayList.class);
> ArrayList reviews =
> (ArrayList)beanReader.parse(xmlReader);
> 
> Anything is returned and no error is throw. What is
> wrong with this code?
> 
> Thanks for any help.
> Cristiane
> 
> 
> 
> 		
> ____________________________________________________
> Start your day with Yahoo! - make it your home page 
> http://www.yahoo.com/r/hs 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message