title: Avoid DOMDocument XML warnings in php
body: <p>I'm fetching xml files from a server and sometimes I'm getting a non-valid xml files, because of this I'm getting a warning:</p>
  
  <pre><code>Warning: DOMDocument::load() [domdocument.load]: Start tag expected, '&lt;' not found in 
  </code></pre>
  
  <p>How can I catch this warning and delete the file?</p>