On Sat, 23 Aug 2003, Aaron Mulder wrote:
> P.S. Does this xbeans package bear any relation to BEA XMLBeans?
Never mind, upon looking at the code, I see it's the same thing.
The JAR size is fairly unpleasant, but it's only twice as big as
Castor, so it's not a huge deal.
I don't like the XMLBeans generated code much in comparison. For
an element like "EJB Ref", Castor generates a getter and a setter for each
"String" property and each child element. XMLBeans generates 4-8 methods
per property, plus 18 factory methods to create the bean. It seems fairly
unfriendly. Is there some way to force it to drop all the extras and just
give 2 methods per property and no factories? Or are those required for
the extra features?
Aaron
> On Fri, 22 Aug 2003, James Strachan wrote:
> > Doesn't this replicate the work i've done on the xbeans package? i.e.
> > I've taken all the different j2ee XSDs and generated beans for all of
> > them which are capable of parsing themselves from XML, turning
> > themselves back into XML as well as XPath navigation and XSD validation
> > checking.
> >
> > Would this do the job?
> >
> > http://www.apache.org/~jstrachan/geronimo/modules/xbeans/
> >
> > Seems silly to hand-craft beans for an XSD
> >
> > James
> > -------
> > http://radio.weblogs.com/0112098/
>