displaying xml file content within php
<p>i have xml file( product.xml) and i need to display the whole content( including xml declaration , tags and node values) of this file within php program. how can i achieve that?</p>

<p>products.xml</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;products&gt;
&lt;product onshelf="yes"&gt;          
&lt;type&gt;cosmetic&lt;/type&gt;          
&lt;address&gt;   
&lt;suburb&gt;Melbourne&lt;/suburb&gt; 
&lt;/address&gt;      
&lt;/product&gt;  
&lt;product onshelf="yes"&gt;          
&lt;type&gt;cosmetic&lt;/type&gt;          
&lt;address&gt;   
&lt;suburb&gt;Melbourne&lt;/suburb&gt; 
&lt;/address&gt;      
&lt;/product&gt;  
&lt;/products&gt; 
</code></pre>

<p>output: </p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;products&gt;
&lt;product onshelf="yes"&gt;          
&lt;type&gt;cosmetic&lt;/type&gt;          
&lt;address&gt;   
&lt;suburb&gt;Melbourne&lt;/suburb&gt; 
&lt;/address&gt;      
&lt;/product&gt;  
&lt;product onshelf="yes"&gt;          
&lt;type&gt;cosmetic&lt;/type&gt;          
&lt;address&gt;   
&lt;suburb&gt;Melbourne&lt;/suburb&gt; 
&lt;/address&gt;      
&lt;/product&gt;  
&lt;/products&gt; 
</code></pre>
