title: Auto Generate Java Skeleteon Class from XML
body: <p>I have an xml file that looks a little like this :</p>
  
  <pre><code>&lt;Model&gt;
      &lt;Class name=""&gt;
          &lt;Attribute name="" type =""/&gt;
          &lt;Attribute\&gt;
          &lt;Method name="" returnType=""/&gt;
      &lt;/Class&gt;
  &lt;/Model&gt;
  </code></pre>
  
  <p>I was wondering how I could then generate a Java/C++ class from the xml. I have tried using xjc (generating a schema using AltovaXmlSpy ) but I get output that creates a class for each Class, Attribute and Mehthod, rather then putting the methods and attributes inside the Class.</p>
  
  <p>Any Help Appreciated.</p>