Я пытаюсь проанализировать URL-адрес shoutcast XML, используя PHP и simpleXML.
<code><?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
$url = 'http://api.shoutcast.com/legacy/stationsearch?k=mydeveloperAPIkey&search=fleetwood';
$stationlist = simplexml_load_file($url) or die("feed not loading");
echo "<pre>" . print_r($stationlist) . "
";
echo $ stationlist-> station [0] -> name. "имя
";
echo $ stationlist-> station [0] -> mt. "mt
";
echo $ stationlist-> station [0] -> id. "id
";
?>
print_r показывает мне это: http://sahanaya.net/kusal/1.php
как мне получить доступ к названию станции, mt, id, жанру, ct, lc и другим, пожалуйста? Что я делаю не так?