data.txtをphpを使用してテキストファイルをxmlに変換しますか?
ha15rs,250,home2.gif,2
ha36gs,150,home3.gif,1
ha27se,300,home4.gif,4
ha4678,200,home5.gif,5
は、PHPを使用してのSimpleXMLモジュールを使用してXMLには、このテキストファイルを変換したいですか?ありがとう:)
p.s.この
EDITに新しいイム:
<allproperty>
<aproperty>
<postcode></postcode>
<price></price>
<imagefilename></imagefilename>
<visits></visits>
</aproperty>
<aproperty>
<postcode></postcode>
<price></price>
<imagefilename></imagefilename>
<visits></visits>
</aproperty>
<aproperty>
<postcode></postcode>
<price></price>
<imagefilename></imagefilename>
<visits></visits>
</aproperty>
</allproperty>
開始:ファイルを行に解析する 'file()'; 'explode()'を使って列を分割する –
DOMDocumentをまとめて:http://stackoverflow.com/questions/1933563/creating-dynamic-xml-with-phpそしてファイルに書き出してください –
私の読書今日は少し遅いです。あなたはそれを望む形式を教えてください。どうも。 – Jonah