What is the easiest way to convert my java beans into xml?
Created Mar 30, 2002
Davanum Srinivas Use java.beans.XMLEncoder.
XMLEncoder e = new XMLEncoder(
new BufferedOutputStream(
new FileOutputStream("Test.xml")));
e.writeObject(new JButton("Hello, world"));
e.close();