Possible Duplicate:
Parsing xml from url php
I need to parse xml-document from url and solve to use CURL, because my hosting don't working with some dom or simplexml functions. How I can replace symbol of euro and show them. Function str_replace dont help me.
<?php
$url = 'http://www.aviasales.ru/latest-offers.xml';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, 'app');
$query = curl_exec($ch);
curl_close($ch);
$xml=simplexml_load_string($query);
//$xml = str_replace('€', '€', $xml);
?>
<table width=100%>
<tr bgcolor="#CAE8F0" align="left">
<td><b><?= $xml->offer[1]['title']?></b></td>
<td width=5%><b><a href="<?=$xml->offer[1]["href"]?>">buy</a></td>
</tr>
</table>