title: XML schema not found even if specified in file
body: <p>I'm trying something as simple as generating XML that respects the rules of an XML Schema. However, I have not myself specified the XSD file and have just been given an example of how the header of my XML should be, but for some reason the schema can not be found automatically by e.g. <strong>Notepad++</strong> or by <code>XmlReaderSettings</code> in my C# project. </p>
  
  <p>Here is a example of my XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;PBSXML000:FullDelivery xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://pbs-erhverv.dk/online/xml/bs/pbsxml000bigmax http://pbs-erhverv.dk/online/xml/bs/pbsxml000bigmax.xsd" xmlns:PBSXML000="http://pbs-erhverv.dk/online/xml/bs/pbsxml000bigmax"&gt;
    &lt;PBSXML000:DeliveryStart&gt;
      &lt;PBSXML000:DataSupplierCVR&gt;00000&lt;/PBSXML000:DataSupplierCVR&gt;
      &lt;PBSXML000:DataSupplierSysCode&gt;000&lt;/PBSXML000:DataSupplierSysCode&gt;
      &lt;PBSXML000:DeliveryId&gt;12345678&lt;/PBSXML000:DeliveryId&gt;
      &lt;PBSXML000:DeliveryCreateDate&gt;211119&lt;/PBSXML000:DeliveryCreateDate&gt;
    &lt;/PBSXML000:DeliveryStart&gt;
    &lt;PBSXML000:SectionStart&gt;
      &lt;PBSXML000:CreditorPBSNr&gt;12345678&lt;/PBSXML000:CreditorPBSNr&gt;
      &lt;PBSXML000:SectionNr&gt;0112&lt;/PBSXML000:SectionNr&gt;
      &lt;PBSXML000:DebtorGroupNr&gt;1&lt;/PBSXML000:DebtorGroupNr&gt;
    &lt;/PBSXML000:SectionStart&gt;
    &lt;PBSXML000:DebtorIdentification&gt;
      &lt;PBSXML000:DebtorCustomerNr&gt;99100045&lt;/PBSXML000:DebtorCustomerNr&gt;
      &lt;PBSXML000:AgreementNr&gt;999100012&lt;/PBSXML000:AgreementNr&gt;
      &lt;PBSXML000:DuePayDate&gt;01122019&lt;/PBSXML000:DuePayDate&gt;
      &lt;PBSXML000:DebtorCVROrCPRNr&gt;12345678&lt;/PBSXML000:DebtorCVROrCPRNr&gt;
    &lt;/PBSXML000:DebtorIdentification&gt;
    &lt;PBSXML000:M601Record&gt;
      &lt;PBSXML000:RecordType022&gt;
        &lt;PBSXML000:DebtorNameAddr1&gt;Hans Ole, blalba 17, st th&lt;/PBSXML000:DebtorNameAddr1&gt;
        &lt;PBSXML000:DebtorPostCode&gt;2100&lt;/PBSXML000:DebtorPostCode&gt;
        &lt;PBSXML000:DebtorCountryCode&gt;DK&lt;/PBSXML000:DebtorCountryCode&gt;
      &lt;/PBSXML000:RecordType022&gt;
      &lt;PBSXML000:RecordType042&gt;
        &lt;PBSXML000:SignCode&gt;1&lt;/PBSXML000:SignCode&gt;
        &lt;PBSXML000:Amount&gt;100095&lt;/PBSXML000:Amount&gt;
      &lt;/PBSXML000:RecordType042&gt;
      &lt;PBSXML000:RecordType052&gt;
        &lt;PBSXML000:TextNoteRecordNr&gt;11335&lt;/PBSXML000:TextNoteRecordNr&gt;
        &lt;PBSXML000:TextLine&gt;Ost - den gode&lt;/PBSXML000:TextLine&gt;
      &lt;/PBSXML000:RecordType052&gt;
    &lt;/PBSXML000:M601Record&gt;
    &lt;PBSXML000:DebtorIdentification&gt;
      &lt;PBSXML000:DebtorCustomerNr&gt;12345&lt;/PBSXML000:DebtorCustomerNr&gt;
      &lt;PBSXML000:AgreementNr&gt;12345&lt;/PBSXML000:AgreementNr&gt;
      &lt;PBSXML000:DuePayDate&gt;01122019&lt;/PBSXML000:DuePayDate&gt;
      &lt;PBSXML000:DebtorCVROrCPRNr&gt;12345678&lt;/PBSXML000:DebtorCVROrCPRNr&gt;
    &lt;/PBSXML000:DebtorIdentification&gt;
    &lt;PBSXML000:SectionEnd&gt;
      &lt;PBSXML000:Amountin601&gt;1334690&lt;/PBSXML000:Amountin601&gt;
    &lt;/PBSXML000:SectionEnd&gt;
    &lt;PBSXML000:DeliveryEnd&gt;
      &lt;PBSXML000:NrOfAll042in601&gt;54&lt;/PBSXML000:NrOfAll042in601&gt;
      &lt;PBSXML000:TotalAmountin601&gt;0&lt;/PBSXML000:TotalAmountin601&gt;
      &lt;PBSXML000:NrOfAll052in601&gt;32&lt;/PBSXML000:NrOfAll052in601&gt;
      &lt;PBSXML000:NrOfAll022in601&gt;22&lt;/PBSXML000:NrOfAll022in601&gt;
    &lt;/PBSXML000:DeliveryEnd&gt;
  &lt;/PBSXML000:FullDelivery&gt;
  </code></pre>
  
  <p>And the header of the schema file is this:</p>
  
  <pre><code>&lt;xs:schema xmlns:PBSXML000="http://pbs-erhverv.dk/online/xml/bs/pbsxml000bigmax" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://pbs-erhverv.dk/online/xml/bs/pbsxml000bigmax" elementFormDefault="qualified" attributeFormDefault="unqualified"&gt;
  </code></pre>
  
  <p>When I try to test is just get the error:</p>
  
  <p>Failed to locate the main schema resource at </p>
  
  <blockquote>
    <p>'<a href="http://pbs-erhverv.dk/online/xml/bs/pbsxml000bigmax.xsd" rel="nofollow noreferrer">http://pbs-erhverv.dk/online/xml/bs/pbsxml000bigmax.xsd</a>'</p>
  </blockquote>
  
  <p>Do you have any idea why this simple thing fails?</p>