title: How to fix missing namespace prefix in XML
body: <p>I have an XML file which I can't modify by myself. It contains the following root element:</p>
  
  <pre><code>&lt;foo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" noNamespaceSchemaLocation="some.xsd"&gt;
  </code></pre>
  
  <p>As you can see the prefix <code>xsi:</code> is missing for <code>noNamespaceSchemaLocation</code>. This causes the <code>XmlReader</code> to not find the schema information while validating. If I add the prefix all is good. But as I said I can't modify the XML file (besides testing). I get them from an external source and my tool should automatically validate them.</p>
  
  <p>Is there a possibility to make the <code>XmlReader</code> interpret <code>noNamespaceSchemaLocation</code> without the <code>xsi:</code> prefix? I don't want to add the prefix inside the XML in a preprocessing step or something like that as the sources should exactly remain as they are.</p>