title: converting text file into xml using php?
body: <p>data.txt</p>
  
  <pre><code>ha15rs,250,home2.gif,2
  ha36gs,150,home3.gif,1
  ha27se,300,home4.gif,4
  ha4678,200,home5.gif,5
  </code></pre>
  
  <p>i want convert this textfile into xml using simplexml module using php? thanks :))</p>
  
  <p>p.s. im new to this</p>
  
  <p>EDIT:</p>
  
  <pre><code>&lt;allproperty&gt;
            &lt;aproperty&gt;
                     &lt;postcode&gt;&lt;/postcode&gt;
                     &lt;price&gt;&lt;/price&gt;
                     &lt;imagefilename&gt;&lt;/imagefilename&gt;
                     &lt;visits&gt;&lt;/visits&gt;
                &lt;/aproperty&gt;
                &lt;aproperty&gt;
                     &lt;postcode&gt;&lt;/postcode&gt;
                     &lt;price&gt;&lt;/price&gt;
                     &lt;imagefilename&gt;&lt;/imagefilename&gt;
                     &lt;visits&gt;&lt;/visits&gt;
                &lt;/aproperty&gt;
                &lt;aproperty&gt;
                     &lt;postcode&gt;&lt;/postcode&gt;
                     &lt;price&gt;&lt;/price&gt;
                     &lt;imagefilename&gt;&lt;/imagefilename&gt;
                     &lt;visits&gt;&lt;/visits&gt;
                &lt;/aproperty&gt;
            &lt;/allproperty&gt;
  </code></pre>