There is an adapter called Domify which is currently part of the Maverick MVC framework (http://mav.sourceforge.net) which uses introspection to provide a DOM view of an arbitrary graph of JavaBeans objects. Maverick uses this to allow XSLT transformations to be run directly on JavaBeans models, eliminating the need to generate (and parse) text XML. Of course you can simply serialize the DOM to a stream with JAXP to get the XML.
Domify stands alone in a separate package (org.infohazard.domify.*) although it's included in the maverick jar. We're splitting it out into a separate sourceforge project RSN. At the moment, documentation is pretty much the source code, but if you want to go from JavaBeans to XML, this is a pretty pleasant way. Jeff Schnitzer [EMAIL PROTECTED] The Maverick MVC Framework: http://mav.sourceforge.net > -----Original Message----- > From: Gene Chuang [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 06, 2001 1:58 PM > To: [EMAIL PROTECTED] > Subject: JavaBeans to Properties or XML format > > > Anyone know a good tool to convert standard JavaBeans to > either a Properties file or XML > format? I'm trying to implement JUnit and would like to have > test input data piped in as > one of these two formats. My testcase will then construct > JavaBean(s) used as parameters > for my EJB services. > > I think we have a utility here that converts JavaBeans, but > only with basic attributes. > It cannot do nested JavaBeans, or JavaBeans with JavaBeans as > attributes. > > Gene > > > > __________________________________________________ > Do You Yahoo!? > Send your FREE holiday greetings online! > http://greetings.yahoo.com > > ============================================================== > ============= > To unsubscribe, send email to [EMAIL PROTECTED] and > include in the body > of the message "signoff EJB-INTEREST". For general help, > send email to > [EMAIL PROTECTED] and include in the body of the message "help". > > ==========================================================================To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
