Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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