title: Parse XML tag With Space in ASP Classic
body: <p>I understand this is not according to standard, however a partner is passing XML to our app that contains spaces in the tags, like so:</p>
  
  <pre><code>&lt;RESPONSE&gt;
    &lt;XYZZYS&gt;
      &lt;XYZZY TAG="INFO"&gt;123abc&lt;/FIELD&gt;
      &lt;XYZZY TAG="MOAR_INFO"&gt;123456abcdef&lt;/FIELD&gt;
      &lt;XYZZY TAG="EVEN_MOAR_INFO"&gt;1&lt;/FIELD&gt;
  </code></pre>
  
  <p>Normally I would load the XML into an object via getElementsByTagName("*") and get the tag names with item(index).nodeName. The problem is that since spaces aren't supposed to be there, item(index).nodeName ends up being simply XYZZY. This is of course a problem since each of them began with XYZZY.</p>
  
  <ul>
  <li>For kicks I tried to replace() the "XYZZY " in item(index).nodeName, but predictably this spawned a 500 error.</li>
  <li>ResponseXML.preserveWhiteSpace doesn't help.</li>
  <li>I've thought about manipulating the XML as a string to do the replace, but am not sure if I can load it back into an MSXML object... and it seems a little needlessly-complicated...</li>
  <li>...as does simple text-string parsing.</li>
  </ul>
  
  <p>Is there a simple solution I've been unable to find? Links to resources are very much appreciated!</p>