title: display a xml document without the tags?
body: <p>i have file called data_out.xml which contains this xml code:</p>
  
  <pre><code>&lt;?xml version="1.0" ?&gt; 
      - &lt;allproperty&gt;
      - &lt;aproperty&gt;
        &lt;postcode&gt;ha15rs&lt;/postcode&gt; 
        &lt;price&gt;250&lt;/price&gt; 
        &lt;imagefilename&gt;home2.gif&lt;/imagefilename&gt; 
        &lt;visits&gt;2&lt;/visits&gt; 
        &lt;/aproperty&gt;
      - &lt;aproperty&gt;
        &lt;postcode&gt;ha36gs&lt;/postcode&gt; 
        &lt;price&gt;150&lt;/price&gt; 
        &lt;imagefilename&gt;home3.gif&lt;/imagefilename&gt; 
        &lt;visits&gt;1&lt;/visits&gt; 
        &lt;/aproperty&gt;
      - &lt;aproperty&gt;
        &lt;postcode&gt;ha27se&lt;/postcode&gt; 
        &lt;price&gt;300&lt;/price&gt; 
        &lt;imagefilename&gt;home4.gif&lt;/imagefilename&gt; 
        &lt;visits&gt;4&lt;/visits&gt; 
        &lt;/aproperty&gt;
      - &lt;aproperty&gt;
        &lt;postcode&gt;ha4678&lt;/postcode&gt; 
        &lt;price&gt;200&lt;/price&gt; 
        &lt;imagefilename&gt;home5.gif&lt;/imagefilename&gt; 
        &lt;visits&gt;5&lt;/visits&gt; 
        &lt;/aproperty&gt;
        &lt;/allproperty&gt;
  </code></pre>
  
  <p>i want to write a php script that outputs this data without the tags, im not worried about the formatting, just the output, cheers thanks
  p.s. im using simplexml</p>
  
  <p>EDIT:</p>
  
  <p>is this wrong or right:</p>
  
  <pre><code>&lt;?php
  
  $fp = fopen('data_out.xml', 'r'); 
  echo preg_replace('/&lt;[^&gt;]+&gt;/', '', $fp);
  
  ?&gt; 
  </code></pre>