title: How to read xml file as it is in browser using php?
body: <p>I have created an xml file  using <code>DOMDocument</code>. I want to read the xml file as it is in browser. If I do </p>
  
  <pre><code>$xml = simplexml_load_file('/var/lol/test.xml');
  print_r($xml);
  </code></pre>
  
  <p>It displays the parsed object not the xml itself. I want the xml displayed as it is. How do I do this. I have tried <code>file_get_contents()</code> too. Doesn't work. Please help.</p>