Using XMLEncoder
Click here to download now
Overview: This paper covers advanced use of XMLEncoder, showing how it can be configured to create archives of any Java objects - even when they don?t follow the JavaBeans conventions. The paper includes examples of how to make properties ?Transient? and how to create archives that call constructors with arguments, use static factory methods, and perform non-standard initialization steps. The XMLEncoder class can be used to create an XML document that describes the state of a JavaBeans component (a bean), much like the way the ObjectOutputStream class can be used to create binary files representing Serializable objects.

