title: reference to invalid character number: (Python ElementTree parse)
body: <p>I have xml file which has following content:</p>
  
  <pre><code>    &lt;word&gt;vegetation&lt;/word&gt;
      &lt;word&gt;cover&lt;/word&gt;
      &lt;word&gt;(&amp;#x2;31%&lt;/word&gt;
      &lt;word&gt;split_identifier ;&lt;/word&gt;
      &lt;word&gt;Still&lt;/word&gt;
      &lt;word&gt;and&lt;/word&gt;
  </code></pre>
  
  <p>When I read the file using ElmentTree parse, it gives me error : </p>
  
  <blockquote>
    <p>xml.etree.ElementTree.ParseError: reference to invalid character
    number </p>
  </blockquote>
  
  <p>Its becuase of (&amp;#x2 which is "~").</p>
  
  <p>How can I take care of such issues. I am not sure how many other symbols i would get in future.</p>