This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Java in General and the fly likes how to create XML from JavaBeans ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "how to create XML from JavaBeans ??" Watch "how to create XML from JavaBeans ??" New topic
Author

how to create XML from JavaBeans ??

karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
hi
im looking for an easy way to convert my JavaBeans to XML (which will be processed by XSLT afterwoods).
are there any good tools to do this ?
thanks
k
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
If you're using 1.4 take a look at java.beans.XMLEncoder. That should do all the work for you.


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
John Lee
Ranch Hand

Joined: Aug 05, 2001
Posts: 2545
hi:
please take a look at XML JavaBeans.
karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
thanks, i'll have a look at those solutions.
k
Axel Janssen
Ranch Hand

Joined: Jan 08, 2001
Posts: 2164
another interesting thing is digester from jarkarta-commons.
http://www.javaworld.com/javaworld/jw-10-2002/jw-1025-opensourceprofile.html
http://www.onjava.com/pub/a/onjava/2002/10/23/digester.html?page=3
John Lee
Ranch Hand

Joined: Aug 05, 2001
Posts: 2545
You are welcome!
 
GeeCON Prague 2014
 
subject: how to create XML from JavaBeans ??