In addition to all of the good suggestions earlier in this thread, you
might also want to take a look at Commons Digester -- which Struts and
Tomcat, among others, use to parse their configuration XML documents
(typically turning the result into a tree of JavaBeans).

http://jakarta.apache.org/commons/digester/

There's also a corresponding project (Betwixt) for going the opposite direction.

Craig


On 6/17/05, Nitesh <[EMAIL PROTECTED]> wrote:
> You could probably try using JAXB... That API is given by sun for Java for
> XML binding... gives you option to create java objects from an XML schema so
> that converting xml to java and vice-versa can be done without much work!
> Take a look at
> 
> http://java.sun.com/xml/jaxb/
> 
> Nitesh
> ----- Original Message -----
> From: "David Gagnon" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <user@struts.apache.org>
> Sent: Friday, June 17, 2005 6:43 PM
> Subject: [OT] Convert Java Object into XML. Is there a simple tool in
> Jakarta projects or elsewere
> 
> 
> > Hi all,
> >
> >  Sorry for this OT.  I'm looking for a way to output an object into XML
> > for debugging purpose.
> > I'm pretty sure I can do it myself with beanUtils and xml-api ..but I hate
> > reinventing the whell and pretty sure there is a simple tool somewhere.
> >
> > Thanks for your help!
> >
> > Have a nice week-end
> > /David
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to