Re: [xml-dev] Best way to create an XML document

From
Robert Koberg <>
To
Andrew Welch <>
Date
2008-04-12T19:01:54Z
ID
<1208026914.11392.7.camel@rkoberg-laptop>
Thread
Re: [xml-dev] Best way to create an XML document
On Sat, 2008-04-12 at 19:20 +0100, Andrew Welch wrote:
> It would be really nice if you could just annotate a pojo and persist
> that to XML, ala JPA...

You probably know this, but there is:

http://java.sun.com/javase/6/docs/api/javax/xml/bind/annotation/XmlElement.html

(and its brethren)

But this is probably easiest:

http://java.sun.com/javase/6/docs/api/java/beans/XMLEncoder.html

(and XMLDecoder)

best,
-Rob