You can use the XMLDecoder/XMLEncoder to serialize JavaBean as xml. Here are the examples from oracle's Javadocs on the two classes:
(XMLDecoder)
XMLDecoder d = new XMLDecoder(
new BufferedInputStream(
new FileInputStream("Test.xml")));
Object result = d.readObject();
d.close();
(XMLEncoder)
XMLEncoder e = new XMLEncoder(
new BufferedOutputStream(
new FileOutputStream("Test.xml")));
e.writeObject(new JButton("Hello, world"));
e.close();
Note that you would need to add getters and setters and make the class serializable.