title: How to skip invalid characters in XML file using PHP
body: <p>I'm trying to parse an XML file using PHP, but I get an error message:</p>
  <blockquote>
  <p>parser error : Char 0x0 out of allowed range in</p>
  </blockquote>
  <p>I think it's because of the content of the XML, I think there is a speical symbol &quot;☆&quot;,  any ideas what I can do to fix it?</p>
  <p>I also get:</p>
  <blockquote>
  <p>parser error : Premature end of data in tag item line</p>
  </blockquote>
  <p>What might be causing that error?</p>
  <p>I'm using <a href="http://php.net/manual/en/function.simplexml-load-file.php" rel="noreferrer"><code>simplexml_load_file</code></a>.</p>
  <h3>Update:</h3>
  <p>I try to find the error line and paste its content as single xml file and it can work!! so I still cannot figure out what makes xml file parse fails. PS it's a huge xml file over 100M, will it makes parse error?</p>