Have a look at the CastorTransformer in the scratchpad.
HTH Guido -- Open Source Group sunShine - Lighting up e:Business ================================================================= Guido Casper, S&N AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-87 [EMAIL PROTECTED] - http://www.s-und-n.de ================================================================= nick.airey schrieb: > Hello everyone, > > I think it would be useful to have a "BeanGenerator", which basically > generates SAX events based on a java bean. > > I already have written several of these, customized according to various > java bean structures, but I see I am going to need more of them, so it > would be cool to replace all of these generators with a single generator > which uses bean introspection to generate SAX events. > > > In my case, the beans in question are value objects returned from EJB > middleware, and cocoon is doing all the presentation layer processing. > > > > My question is: does something like this exist already? I suspect not. > > If not, my second question is: does anyone know a good (open) framework > for converting beans to SAX events. I have been doing some research, and > have come across several projects: > > Betwixt > (http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/betwixt/) > Looks promising, but doesn't (yet) have a SAX writer. > > Domify: > (http://domify.sourceforge.net/) > > Hammer: > (http://www.csse.monash.edu.au/~bren/Hammer/) > Stars in the WROX "Java XML" book, published 2001, chapter 6. > > > Can anyone comment on which would be a good way to go. Of course, if > this is considered to be generally useful, I would be happy to donate > the code for the resulting generator to the cocoon project. > > > Nick. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]