||The State of JAXB: Availability, Suitability, Analysis, and Architecture|
|If you need an simple code-centric way to marshal and unmarshal Java objects to XML, you can use java.beans.XMLEncoder & XMLDecoder. These classes are meant to replace ObjectInputStream/ObjectOutputStream and they work virtually identically, in that they are able to encode/decode any JavaBean-compatible type. The downsides to this approach are that the XML is more bloated than it needs be, and interoperability is tougher due to the fact that no specific schema is generated for the bean. However, the DTD used by XMLEncoder can be found at http://java.sun.com/products/jfc/tsc/articles/persistence3/javabeans.dtd.|
Showing messages 1 through 1 of 1.
2004-05-10 12:39:50 satyak [View]