title: Parsing XML schema java
body: <p>I need to parse XML schema (source can be wsdl file or xsd ) and extract all the complex types and their constituent elements with their types.. I have used JAXB (xjc)but it does not return me a list of all complexTypes . Which alternative (XSOM) should I use? I would prefer some built-in library in jdk6. </p>
  
  <p>`</p>
  
  <pre><code> &lt;element name="BankLoanProcessRequest"&gt;   
     &lt;complexType&gt;
       &lt;sequence&gt;
      &lt;element name="ClientId" type="int"/&gt;
      &lt;element name="LoanAmount" type="double"/&gt;
     &lt;/sequence&gt;
    &lt;/complexType&gt;
   &lt;/element&gt;`
  </code></pre>