File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Java Object - XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java Object - XML" Watch "Java Object - XML" New topic

Java Object - XML

Mike Yu
Ranch Hand

Joined: Nov 17, 2001
Posts: 175
Can we serialize a Java object via XML?

Thanks,<br />Mike
Sean MacLean
Ranch Hand

Joined: Nov 07, 2000
Posts: 621
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.
It is sorta covered in the JavaRanch Style Guide.
subject: Java Object - XML
Similar Threads
XML file generation
Convert XSLT Template to XSLT String object
Java to XML
Write XML using JAVA
Java Objects to XML