title: Using <import> w/ XSD & XML parser error
body: <p>I don't understand what's going on here.  My little parser program passes my XML &amp; XSD changes and loads stuff fine, from what I can tell, but if I put this stuff out there in our production system it blows up.</p>
  
  <p>I'm just now beginning to use the XSD import statement.  What I've done if taken out some user-defined types and put them into a XSD all their own.</p>
  
  <p>Here are some typical errors</p>
  
  <p>Error at file "/home/dfcuser/dataElementsTrans.xsd", line=7, column=37, XML element=, Imported schema 'DFCTypes.xsd' has a different targetNameSpace 'http://www.quikq.com/xsd/dataElementsTrans' from what's declared 'http://www.quikq.com/DFCTypes'</p>
  
  <p>Error at file "/home/dfcuser/dataElementsTrans.xsd", line=29, column=55, XML element=, Schema Representation Constraint: Namespace 'http://www.quikq.com/DFCTypes' is referenced without  declaration</p>
  
  <p>Here is the preamble of the example documents:</p>
  
  <pre><code>    DFCTypes.xsd
      ------------
      &lt;xs:schema
          targetNamespace="http://www.quikq.com/DFCTypes" 
          xmlns:xs="http://www.w3.org/2001/XMLSchema"
          elementFormDefault="qualified"&gt; 
  
      dataElementsTrans.xsd
      ---------------------
      &lt;xs:schema 
          xmlns:xs="http://www.w3.org/2001/XMLSchema" 
          xmlns:dfct="http://www.quikq.com/DFCTypes" 
          targetNamespace="http://www.quikq.com/xsd/dataElementsTrans" 
          xmlns="http://www.quikq.com/xsd/dataElementsTrans"
          elementFormDefault="qualified" &gt;
  
          &lt;xs:import schemaLocation="DFCTypes.xsd" namespace="http://www.quikq.com/DFCTypes" /&gt;
  
      XML
      ---
      &lt;dataElementsTrans 
          xmlns="http://www.quikq.com/xsd/dataElementsTrans" 
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
          xsi:schemaLocation="http://www.quikq.com/xsd/dataElementsTrans dataElementsTrans.xsd"&gt;
  </code></pre>
  
  <p>My sample parser program and production code must have something turned on differently.  I'm still pretty green on this so I'm scratching my head for a bit.</p>
  
  <p>Thanks!</p>