Achiving serialization without implementing the interface serializable.
how to make a class serializable without implementing the interface the serializable.
... although the objects you're converting with XMLEncoder must be JavaBeans, not just any POJO.For the latter, you may want to look at XStream, or JSX.