title: Generate XML schema with classes and methods from Java classes - JAXB
body: <p>Is there a way in (java - JAXB) to generate a full XML schema that contains all my classes and methods</p>
  
  <p>here is my class</p>
  
  <pre><code>public class ConvertUML {
  
      public static void method1() {
          System.out.println("Print 1");
          }
  
      public static void method2() {
          System.out.println("Print 2");
          }
  }
  </code></pre>
  
  <p>and this is the generated XML from JAXB</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
  &lt;xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;xs:complexType name="convertUML"&gt;
      &lt;xs:sequence/&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:schema&gt;
  </code></pre>
  
  <p>how can I have method1() and method2() in the schema?</p>