title: JAXB customize bindings - skip generated classes from schema
body: <p>I have a following schema:</p>
  
  <pre><code>&lt;xs:element name="Invoice"&gt;
      &lt;xs:complexType&gt;
        &lt;xs:sequence&gt;
          .....
          &lt;xs:element name="InvoiceLines" type="InvoiceLinesType"&gt;
          &lt;/xs:element&gt;
          .....
      &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
  
  &lt;xs:complexType name="InvoiceLinesType"&gt;
     &lt;xs:sequence&gt;
       &lt;xs:element maxOccurs="unbounded" name="InvoiceLine" type="InvoiceLineType"&gt;
       &lt;/xs:element&gt;
     &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  
  &lt;xs:complexType name="InvoiceLineType"&gt;    
   &lt;xs:sequence&gt;
     .....
   &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  </code></pre>
  
  <p>The problem is, that it generate classes:</p>
  
  <ul>
  <li>Invoice - which contain member of InvoiceLinesType</li>
  <li>InvoiceLinesType - which contain a collection of InvoiceLineType</li>
  <li>InvoiceLineType</li>
  </ul>
  
  <p>So there is one unnecessary class (InvoiceLinesType) and i prefer the following</p>
  
  <ul>
  <li>Invoice - which contain a collection of InvoiceLineType</li>
  <li>InvoiceLineType</li>
  </ul>
  
  <p>Does anyone know how to tell the compiler not to generate this package (InvoiceLinesType).</p>
  
  <p>My current external binding file is there</p>
  
  <pre><code>&lt;jxb:bindings schemaLocation="invoice.xsd" node="/xs:schema"&gt; 
      &lt;jxb:globalBindings&gt;
          .....            
          &lt;xjc:simple/&gt;
          .....
      &lt;/jxb:globalBindings&gt;
  &lt;/jxb:bindings&gt; 
  </code></pre>
  
  <p>Thank You for response.</p>