usa las funciones nativas de php para tratar XML, si solo necesitas Leer usa SIMPLEXML
en la web oficial ay mas ejemplos
https://www.php.net/manual/en/functi...-load-file.php
Código PHP:
Ver original<?php
$xml = '<?xml version="1.0" encoding="UTF-8" ?>
<rss>
<channel>
<item>
<title><![CDATA[Tom & Jerry]]></title>
</item>
</channel>
</rss>';
// echo does the casting for you
echo $xml->channel->item->title;
// but vardump (or print_r) not!
// so cast the SimpleXML Element to 'string' solve this issue
var_dump((string
) $xml->channel->item->title); ?>