Description of Long-term persistence: Serialize JavaBean component state to XML :
This is a tutorial that tells you how the Version 1.4 of J2SE uses the XMLEncoder and XMLDecoder classes creates fully initialized bean instances by supplying serialization. The article provides a detailed explanation of getting started with these classes and also discusses how it provides long-term persistence within an XML document by saving the JavaBean component state.