title: PHP SimpleXML new line
body: <p>I have created a XML file using PHP's simple XML, saved the file. When opening the file in php using fopen and printing the contents. my XML looks like this: (see below)</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;home&gt;&lt;orderList&gt;&lt;delivery_cost&gt;0.00&lt;/delivery_cost&gt;&lt;delivery_surname&gt;TEST&lt;/delivery_surname&gt;&lt;delivery_postcode&gt;1234&lt;/delivery_postcode&gt;&lt;status&gt;1&lt;/status&gt;&lt;/orderList&gt;&lt;/home&gt;
  </code></pre>
  
  <p>I want the xml file looking all indented and on new lines for each element. Does anybody know how to do this? </p>
  
  <p>Thanks</p>