title: xml.etree.ElementTree.ParseError: undefined entity - encoding
body: <p>I'm trying to parse the <strong><code>summary</code></strong> and <strong><code>results</code></strong> entities from the following xml file:</p>
  
  <p><a href="https://meocloud.pt/link/1fd43bd4-9f53-4f77-9ad0-6f25bfa1c413/test.xml/" rel="nofollow noreferrer">XML file</a></p>
  
  <p>A small snippet:</p>
  
  <pre><code>&lt;result&gt;
              &lt;resultType&gt;Potential Problem&lt;/resultType&gt;
              &lt;lineNum&gt;296&lt;/lineNum&gt;
              &lt;columnNum&gt;29&lt;/columnNum&gt;
              &lt;errorMsg&gt;&amp;lt;a href=&amp;quot;https://achecker.ca/checker/suggestion.php?id=43&amp;quot;
                 onclick=&amp;quot;AChecker.popup('https://achecker.ca/checker/suggestion.php?id=43'); return false;&amp;quot;
                 title=&amp;quot;Suggest improvements on this error message&amp;quot; target=&amp;quot;_new&amp;quot;&amp;gt;&amp;lt;code&amp;gt;h2&amp;lt;/code&amp;gt; may be used for formatting.&amp;lt;/a&amp;gt;
              &lt;/errorMsg&gt;
              &lt;errorSourceCode&gt;&amp;lt;h2&amp;gt;O portal netemprego.gov.pt foi substitu&amp;iacute;do pelo iefponline.&amp;lt;/h2&amp;gt;&lt;/errorSourceCode&gt;
              &lt;sequenceID&gt;296_29_43&lt;/sequenceID&gt;
              &lt;decisionPass&gt;This &amp;lt;code&amp;gt;h2&amp;lt;/code&amp;gt; element is really a section header.&lt;/decisionPass&gt;
              &lt;decisionFail&gt;This &amp;lt;code&amp;gt;h2&amp;lt;/code&amp;gt; element is used to format text (not really a section header).&lt;/decisionFail&gt;
          &lt;/result&gt;
  </code></pre>
  
  <p>I'm getting an error message: <code>xml.etree.ElementTree.ParseError: undefined entity: line 55, column 51</code>. 
  I know that this error is related to the encoding. The file is presented with a UTF-8 header tag which sounds to be the right one to the chars contained in the XML. After reading about this and trying multiple workarounds i'm not able to avoid that error. What can i do in python to change it and parse summary and results entities?</p>