title: error on line 3 at column 63: Space required after the Public Identifier when parsing HTML to XML
body: <p>For a chrome project I got thrown into, I have to parse HTML into XML. But I keep getting the error:</p>
  
  <blockquote>
    <p>error on line 3 at column 63: Space required after the Public Identifier</p>
  </blockquote>
  
  <p>The code that throws me this code:</p>
  
  <pre><code>var html1 = httpGet(messages);
  var html2 = html1.toString();
  
  parser = new DOMParser();
  
  var test = ["&lt;tr&gt;&lt;td&gt;test&lt;/td&gt;&lt;td&gt;test&lt;/td&gt;&lt;td&gt;test&lt;/td&gt;&lt;/tr&gt;"];
  
  xmlDoc = parser.parseFromString(html2,"text/xml");
  
  console.log(xmlDoc);
  </code></pre>
  
  <p>I tried to find it in Google but I could not find anything that would make me any wiser. </p>
  
  <p>I did find out however that when I use this simple array, instead of html2 in the <code>parseFromString</code> it works perfectly fine. </p>
  
  <pre><code>var test = ["&lt;tr&gt;&lt;td&gt;test&lt;/td&gt;&lt;td&gt;test&lt;/td&gt;&lt;td&gt;test&lt;/td&gt;&lt;/tr&gt;"];
  </code></pre>
  
  <p>html2 variable contains a full HTML page. I tried to convert it to a string but that didn't seem to help at all. </p>
  
  <p>I only have basic knowledge about Javascript so I'm hoping you guys can make it a bit clearer for me. </p>
  
  <p>Thanks in advance!</p>