title: How to reference a local XML Schema file correctly?
body: <p>I'm having this problem with referencing my XML Schema in an XML file.</p>
  
  <p>I have my XSD in this path:</p>
  
  <pre><code>C:\environment\workspace\maven-ws\ProjectXmlSchema\email.xsd
  </code></pre>
  
  <p>But when in my XML file I'm trying to locate the schema like this, the XSD is not found:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
      &lt;email xmlns="http://www.w3schools.com"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://www.w3schools.com
                   file://C://environment//workspace//maven-ws//ProjextXmlSchema//email.xsd"&gt;
  </code></pre>
  
  <p>The only way the XSD is found is when it's in the same folder:</p>
  
  <pre><code>           xsi:schemaLocation="http://www.w3schools.com email.xsd"
  </code></pre>
  
  <p>So the question is this: <strong>How does the path have to look so that the XSD will be found if the XML file wasn't in the same folder as the XSD file?</strong></p>
  
  <p>By the way, the example I've been using was from <a href="http://msdn.microsoft.com/en-us/library/ms757863(v=vs.85).aspx">MSDN</a>:  they're claiming it's supposed to work the way I tried to. But it doesn't.</p>