title: Load an invalid XML in PHP DOM
body: <p>I have and input XML file that is not correctly formatted ( ie. it has '&amp;' instead of '&amp; amp;')
  When i try to load this XML using PHP DOM, $doc->load("file.xml") it throws and error and stops the parsing.</p>
  
  <p>Is there any way to load this un-formatted XML? and No I cant edit the source XML file.
  I did try using $doc->loadHTML() but it throws errors all over the place.</p>
  
  <p>I wanted to know if there is a proper way to do this (like load file contents and change it using regex or something similar)</p>