You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "Roman V. Petrov" <po...@actimind.com> on 2002/03/01 12:38:20 UTC

Bean -> DOM

Did anyone write JavaBean->XML DOM converter that
can be used with Struts? Sources, URLs and ideas
will be appreciated.

                     Sincerely yours, Roman Petrov

</></></></></></></></></></></></></></></></></></></></>
Software Engineer                    Actimind, Inc.
Software Development Department      http://www.actimind.com
E-mail: poma@actimind.com            Saint-Petersburg
Phone:  +7-(812)-325-87-16(ask 108)  Russia


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Bean -> DOM

Posted by Jon Ferguson <ca...@btinternet.com>.
I'm using Castor.. which is cool since you can also just write a XML Schema and
have the
thing build your classes..  It's quicker to write a schema or even use a
standard schema from
places like RosettaNet.  ..alas there are a few snags which I haven't sorted
yet.. For example,
I haven't been able to get the codegen to create appropriate clone() methods
etc.

Haven't tried JDKs new serialization... can you specify schemas?..

BTW... why Dom?  When you get XML-binding for free I find using your own object
easier.

BTW... Castor has the added bonus of enabling Relational mapping.. so you can
create a JDO solution more easily.

Jon

Arron Bates wrote:

> 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:   <ma...@jakarta.apache.org>
> >For additional commands, e-mail: <ma...@jakarta.apache.org>
> >
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Bean -> DOM

Posted by Arron Bates <ar...@keyboardmonkey.com>.
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:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Bean -> DOM

Posted by Incze Lajos <in...@mail.matav.hu>.
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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Bean -> DOM

Posted by James Mitch <jm...@yahoo.com>.
http://castor.exolab.org/




James



--- "Roman V. Petrov" <po...@actimind.com> wrote:
> Did anyone write JavaBean->XML DOM converter that
> can be used with Struts? Sources, URLs and ideas
> will be appreciated.
> 
>                      Sincerely yours, Roman Petrov
> 
> </></></></></></></></></></></></></></></></></></></></>
> Software Engineer                    Actimind, Inc.
> Software Development Department      http://www.actimind.com
> E-mail: poma@actimind.com            Saint-Petersburg
> Phone:  +7-(812)-325-87-16(ask 108)  Russia
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Bean -> DOM

Posted by Bernard D'Have <bd...@wanadoo.be>.
see article in javaworld 

Struts and XSL (january orfebruary 2002)

Bernard

> -----Original Message-----
> From: Roman V. Petrov [mailto:poma@actimind.com]
> Sent: Friday, March 01, 2002 12:38
> To: struts-dev@jakarta.apache.org
> Subject: Bean -> DOM
> 
> 
> Did anyone write JavaBean->XML DOM converter that
> can be used with Struts? Sources, URLs and ideas
> will be appreciated.
> 
>                      Sincerely yours, Roman Petrov
> 
> </></></></></></></></></></></></></></></></></></></></>
> Software Engineer                    Actimind, Inc.
> Software Development Department      http://www.actimind.com
> E-mail: poma@actimind.com            Saint-Petersburg
> Phone:  +7-(812)-325-87-16(ask 108)  Russia
> 
> 
> --
> To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
> 
> 

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>