• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Thomas Chang
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Xstream seems to be a fairly popular choice. There are several more out there (Google search for Java to XML serialization libs)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!