title: Compiling multiple XSD into single JAR using XMLBeans
body: <p>I have the following directory structure:</p>
  
  <pre><code>schema1
      schema1.xsd
      schema1.xsdconfig
  schema2
      schema2.xsd
      schema2.xsdconfig
  schema3
      schema3.xsd
      schema3.xsdconfig
  </code></pre>
  
  <p>I am trying to compile all of these into a single JAR file using XMLBeans, but cannot work out the scomp command line to compile all of this together.  I need a separate XSDConfig file for each XSD due to limitations in the incoming XML, and the requirement to force a different namespace onto each of these files.</p>
  
  <p>How would I specify these files to be combined into a single JAR using <code>scomp</code>?</p>
  
  <p>When I try to compile them I get the following message:</p>
  
  <pre><code>/Users/chris/development/iservice/sstp-gateway/schema/OrderTracking/request/orderTrackingReq.xsd:3:2: error: sch-props-correct.2: Duplicate global element: Session (Original global element found in file: response/orderTrackingResp.xsd)
  Time to build schema type system: 0.603 seconds
  BUILD FAILED
  </code></pre>
  
  <p>I don't know how to bind each individual xsdconfig to each xsd file.</p>