title: how to handle multiple namespaces with different URI in XSD
body: <p>I have an XML (first.xml) which looks like ::</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;saw:jobInfo xmlns:saw="com.analytics.web/report/v1.1"&gt;     
        &lt;saw:jobStats&gt;...........&lt;/saw:jobStats&gt;    
         &lt;saw:detailedInfo&gt; .....&lt;/saw:detailedInfo&gt;    
         &lt;saw:fileInfo&gt;..........&lt;/saw:fileInfo&gt;
   &lt;/saw:jobInfo&gt; 
  </code></pre>
  
  <p>The below XML (second.xml) is same as the above but with a different namespace.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; 
   &lt;soap:jobInfo xmlns:soap="urn://bi.webservices/v6"&gt;  
     &lt;soap:jobStats&gt;...........&lt;/saw:jobStats&gt;
     &lt;soap:detailedInfo&gt; .....&lt;/saw:detailedInfo&gt;    
     &lt;soap:fileInfo&gt;..........&lt;/saw:fileInfo&gt;
   &lt;/soap:jobInfo&gt; 
  </code></pre>
  
  <p>As I have the same element and attribute names in both the xml's I am using the same xsd file to validate both.</p>
  
  <p>XSD file ::</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8" ?&gt;  
   &lt;xs:schema targetNamespace="com.analytics.web/report/v1.1"      
    xmlns="com.analytics.web/report/v1.1" 
    xmlns:saw="com.analytics.web/report/v1.1" 
    xmlns:soap="urn://bi.webservices/v6"
    xmlns:xs="http://www.w3.org/2001/XMLSchema" 
    elementFormDefault="qualified"
    attributeFormDefault="unqualified"&gt; 
  </code></pre>
  
  <p>After including xmlns:soap="urn://bi.webservices/v6" the schema validation failed for second.xml saying unkown element "soap:jobinfo". I poked around and found the targetNamespace  value should be same as the namespace URI.
  Please let me know how to use the same XSD for two different namespaces having different URIs.</p>