This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply 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!
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how to create XML from JavaBeans ??
 
Similar Threads
java to xml
Generating XML in EJB
Incompatibility side effects of refactoring
For people who have passed
Plug-in architecture: custom ClassLoader?