If you looking to deserialize a bean from XML, then check this Java tip to solve your problem. When a Bean instance is serialized, it is converted into a data stream and written to storage. Any applet, application, or tool that uses that Bean can then "reconstitute" it by deserialization.
Click here for more..!