I'm currently struggling to parse an xml-feed with php. Unfortunately, I'm not lucky with that.
Here's my code:
<?php
echo 'starting parser';
$rss = simplexml_load_file('http://www.faz.net/rss/aktuell/wirtschaft/');
?>
//tests
<h1><?php echo $rss->title; ?></h1>
<h1><?php echo $rss->channel->title; ?></h1>
<h1><?php echo $rss->rss->channel->title; ?></h1>
<ul>
<?php
foreach($rss->channel->item as $chan) {
echo "<li><a href=\"".$chan->link."\">";
echo $chan->title;
echo "</a></li>\n";
}
?>
No output at all... Can anyone help me with that?