title: PHP file_get_contents() and XML files
body: <p>in PHP I want to load a XML file (as a text file) and show its content (as a text) on a screen. I have a simple XML in the form </p>
  
  <pre><code>&lt;root&gt; &lt;parent&gt;Parent text. &lt;/parent&gt;&lt;/root&gt;
  </code></pre>
  
  <p>If I use </p>
  
  <pre><code>$myxmlfilecontent = file_get_contents('./myfile.xml');
  echo $myfilecontent; 
  </code></pre>
  
  <p>prints only the content of the node "parent", it prints only "Parent text.", not the whole file content.</p>