JAXB works fantastic for generating classes from xsd.
Ibatis works fantastic for getting data into classes.
You can use Ibatis to feed data and automatically create classes, then use JAXB to marshal the classes into an XML file! Mind you, that's a lot of effort if you're not going to be doing it over and over again.