ben bu xml kodunu içeren data_out.xml adında dosya var:
<?xml version="1.0" ?>
- <allproperty>
- <aproperty>
<postcode>ha15rs</postcode>
<price>250</price>
<imagefilename>home2.gif</imagefilename>
<visits>2</visits>
</aproperty>
- <aproperty>
<postcode>ha36gs</postcode>
<price>150</price>
<imagefilename>home3.gif</imagefilename>
<visits>1</visits>
</aproperty>
- <aproperty>
<postcode>ha27se</postcode>
<price>300</price>
<imagefilename>home4.gif</imagefilename>
<visits>4</visits>
</aproperty>
- <aproperty>
<postcode>ha4678</postcode>
<price>200</price>
<imagefilename>home5.gif</imagefilename>
<visits>5</visits>
</aproperty>
</allproperty>
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
EDIT:
Bu yanlış ya da doğru:
<?php
$fp = fopen('data_out.xml', 'r');
echo preg_replace('/<[^>]+>/', '', $fp);
?>