title: Load external XML and save it using PHP
body: <p>I want to load and save an external <code>XML</code> file that changes continuously
  e.g. "http://something.com/file.xml"</p>
  
  <p>Sometimes the file is not available because server is overloaded or down and I want to use this file instead and re-save it if the next load is available also let people know the file that they are reading is a backup file because the original is not available.</p>
  
  <p>I read about simplexml_load_file and DOMDocument and I don't know which one is the better solution.</p>