title: XML Error - Element type must be followed by either attribute specifications, ">" or "/>"
body: <p>I am relatively new to using XML. </p>
  
  <p>I have a huge XML file and I have tried to create a miniature version of it by hand - I cut pasted from the original file and matched the tags (I think !). 
  I need this miniature version to do some experiments. </p>
  
  <p>I have the above captioned error () that I can't seem to resolve. Looked at other similar questions but couldn't get this to work. </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;&lt;Message xmlns:bs="urn:iso:std:iso:20022:tech:xsd:camt.053.001.02" xmlns="urn:bcsis" xmlns:head="urn:iso:std:iso:20022:tech:xsd:head.001.001.01"&gt;
  &lt;stmt&gt;
   &lt;bs:Bal&gt;
          &lt;bs:Tp&gt;
              &lt;bs:CdOrPrtry&gt;
                  &lt;bs:Prtry&gt;Outward&lt;/bs:Prtry&gt;
              &lt;/bs:CdOrPrtry&gt;
          &lt;/bs:Tp&gt;
          &lt;bs:AmtCcy="SGD"&gt;300&lt;/bs:Amt&gt;
          &lt;bs:CdtDbtInd&gt;DBIT&lt;/bs:CdtDbtInd&gt;
          &lt;bs:Dt&gt;
              &lt;bs:Dt&gt;2016-10-04&lt;/bs:Dt&gt;
          &lt;/bs:Dt&gt;
   &lt;/bs:Bal&gt;
   &lt;bs:Ntry&gt;
      &lt;bs:AmtCcy="USD"&gt;300.00&lt;/bs:Amt&gt;
   &lt;/bs:Ntry&gt;
  &lt;/stmt&gt;
  &lt;stmt&gt;
  &lt;bs:Bal&gt;
          &lt;bs:Tp&gt;
              &lt;bs:CdOrPrtry&gt;
                  &lt;bs:Prtry&gt;Inward&lt;/bs:Prtry&gt;
              &lt;/bs:CdOrPrtry&gt;
          &lt;/bs:Tp&gt;
          &lt;bs:AmtCcy="USD"&gt;250&lt;/bs:Amt&gt;
          &lt;bs:CdtDbtInd&gt;DBIT&lt;/bs:CdtDbtInd&gt;
          &lt;bs:Dt&gt;
              &lt;bs:Dt&gt;2016-10-04&lt;/bs:Dt&gt;
          &lt;/bs:Dt&gt;
  &lt;/bs:Bal&gt;
  &lt;bs:Ntry&gt;
      &lt;bs:AmtCcy="USD"&gt;250.00&lt;/bs:Amt&gt;
  &lt;/bs:Ntry&gt;
  &lt;/stmt&gt;
  &lt;/Message&gt;
  </code></pre>
  
  <p>The exact error is:</p>
  
  <p>Element type "bs:AmtCcy" must be followed by either attribute specifications, ">" or "/>".</p>
  
  <p>Appears at the first instance of bs:Amt (where amount is SGD 300). </p>