aspose file tools
The moose likes Java in General and the fly likes How to marshall or serialize objects to XML without using Jaxb? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "How to marshall or serialize objects to XML without using Jaxb?" Watch "How to marshall or serialize objects to XML without using Jaxb?" New topic
Author

How to marshall or serialize objects to XML without using Jaxb?

Thomas Chang
Ranch Hand

Joined: May 13, 2008
Posts: 59
Hi all,

I use Axis to create java classes based on a WSDL.

After I fill or set values to the classes by using the setters, I want to marshall the objects to XML. I know I can simply use Jaxb to do this. But since I will deploy my application to BEA Weblogic 8 and this is not compatible with Java5 and Jaxb uses Java5. So I have to look for another alternative to do the marshalling or serializing.

Has someone idea?
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3268

Xstream seems to be a fairly popular choice. There are several more out there (Google search for Java to XML serialization libs)


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to marshall or serialize objects to XML without using Jaxb?
 
Similar Threads
Does jaxws 2.0 use JAXB for java object serialization?
java objects to xml streams in pipe
JAXB Question...
Doubt regarding JAXB
JAXB marshaller - neglect integer fields that are not set