title: Any Java "API" to generate Sample XML from XSD?
body: <p>As part of our application we need to develop a module that takes in an XSD schema and gives out a sample XML. The XSD schemas will be supplied during runtime. So is there any Java API out there that can do the job?</p>
  
  <blockquote>
    <p>Searched this forum and found the following similar questions. But the discussions were around tools to generate sample XML from XSD. Could not find any reference to APIs.<br>
    <a href="https://stackoverflow.com/questions/17106/how-to-generate-sample-xml-documents-from-their-dtd-or-xsd">how-to-generate-sample-xml-documents-from-their-dtd-or-xsd</a><br>
    <a href="https://stackoverflow.com/questions/761661/tool-to-generate-xml-file-from-xsd-for-testing">tool-to-generate-xml-file-from-xsd-for-testing</a><br>
    <a href="https://stackoverflow.com/questions/307616/xml-instance-generation-from-xml-schema-xsd">xml-instance-generation-from-xml-schema-xsd</a>  </p>
  </blockquote>