How about the mechanism that comes with JDK 1.4?... They've added an XML marshalling system to provide an alternative to serializing objects. You can just pump a bean through the XMLEncoder and you'll end up with an XML document. Get the same document and run it through the XMLDecoder and viola, you're back ad your java object!
Quite tidy. Arron. Incze Lajos wrote: >On Fri, Mar 01, 2002 at 02:38:20PM +0300, Roman V. Petrov wrote: > >>Did anyone write JavaBean->XML DOM converter that >>can be used with Struts? Sources, URLs and ideas >>will be appreciated. >> >1. domify.sourceforge.net. >2. jakarta-commons/jxpath (xpath access to bean and/or xml resources) > >Not DOM, but may fill your bill > >and MANY-MANY others. The order above is not by rank. I simply supposed >that you want to give your beans to some xml mechanism (e.g. xsl) to >process. Domify is simply that. I've mentioned the jxpath, also >because it seems to me a more inventious answer to the same question. > >incze > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>