Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Object - XML

 
Mike Yu
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can we serialize a Java object via XML?
 
Sean MacLean
author
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not clear on what you mean. Do you mean take a data object (i.e. java bean) and have it's data translated into an XML Document (which can then be written to disk)? If so, look at the early access JAXB from Sun (I know this goes the other direction xml -> java bean) or Castor. These might be helpful.
Sean
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic