<p>I was wondering if there's a way I can automate the generation of XML files from XSD schemas given that I have the data and the labels. I'd like to do this in python/java. It seems very possible, yet I can't find any library that allows me to do this. I'm looking for a fairly quick solution..
Any ideas?</p>

<blockquote>
  <p>See also: <a href="https://stackoverflow.com/questions/17106/how-to-generate-sample-xml-documents-from-their-dtd-or-xsd/730208#730208">how-to-generate-sample-xml-documents-from-their-dtd-or-xsd</a></p>
</blockquote>

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.