title: SimpleXML RSS help
body: <p>I'm trying to use SimpleXML to read our News RSS feed but it's not outputting anything.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>&lt;?php
  $rss = simplexml_load_file('http://news.stanford.edu/rss/index.xml');
  ?&gt;
  &lt;h1&gt;&lt;?php echo $rss-&gt;title; ?&gt;&lt;/h1&gt;
  &lt;ul&gt;
  &lt;?php
  foreach($rss-&gt;item as $e) {
      echo "&lt;li&gt;&lt;a href=\"".$e-&gt;link['href']."\"&gt;";
      echo $e-&gt;title;     
      echo "&lt;/a&gt;&lt;/li&gt;\n";
  }    
  ?&gt;
  </code></pre>