How to link XML to XSD using schemaLocation or noNamespaceSchemaLocation?
<p>I found some tips for this problem, but still didn't help me.</p>

<p>Here is my XML</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;work xmlns="http://www.w3.org/2001/XMLSchema"
      xmlns:tns="http://www.w3.org/2001/XMLSchema-instance"
      tns:schemaLocation="myXSDSchema.xsd"&gt;
  &lt;tns:Objects&gt;
    &lt;tns:Object Name=":" Location=":"&gt;
    &lt;/tns:Object&gt;
  &lt;/tns:Objects&gt;
&lt;/work&gt;
</code></pre>

<p>Here is my XSD file:</p>

<pre><code>&lt;schema xmlns="http://www.w3.org/2001/XMLSchema" 
        xmlns:tns = "http://www.w3.org/2001/XMLSchema" 
        elementFormDefault="qualified"&gt;
  (some checks)
&lt;/schema&gt;
</code></pre>

<p>My XSD file is located in the same folder as the XML.</p>

<p>How to link these 2 files?</p>