title: xsd-based code generator to build xml?
body: <p>I have a schema (xsd), and I want to create xml files that conform to it.</p>
  
  <p>I've found code generators that generate classes which can be loaded from an xml file (CodeSynthesis).  But I'm looking to go the other direction.</p>
  
  <p>I want to generate code that will let me build an object which can easily be written out as an xml file.  In C++.  I might be able to use Java for this, but C++ would be preferable.  I'm on solaris, so a VisualStudio plugin won't help me (such as xsd2code).</p>
  
  <p>Is there a code generator that lets me do this?</p>