title: simplexml 'Trying to get property of non-object in' error
body: <p>I'm trying to parse the XML of <a href="http://www.mpgh.net/forum/external.php?type=RSS2&amp;forumids=175" rel="nofollow">http://www.mpgh.net/forum/external.php?type=RSS2&amp;forumids=175</a>
  but I get this error, can't find whats wrong.</p>
  
  <blockquote>
    <p><strong>Notice:</strong> Trying to get property of non-object in C:\xampp\htdocs\crossfire\index.php on line 9</p>
  </blockquote>
  
  <pre><code>&lt;?php  
  $rss = simplexml_load_file('http://www.mpgh.net/forum/external.php?type=RSS2&amp;forumids=175'); 
  
  for($i=0;$i&lt;10;$i+=1) {
      $namespaces = $rss-&gt;getNameSpaces(true);
      $dc = $rss-&gt;children($namespaces['dc']);
  
      echo "Title: " . $rss-&gt;channel-&gt;item[$i]-&gt;title . "&lt;br&gt;";
      echo "Creator: " . $dc-&gt;channel-&gt;item[$i]-&gt;creator . "&lt;br&gt;";
      echo "Link: " . $rss-&gt;channel-&gt;item[$i]-&gt;link . "&lt;br&gt;&lt;br&gt;";
  }  
  </code></pre>
  
  <p>And my second question.</p>
  
  <p>Why is this code only working properly at <code>http://www.mpgh.net/forum/external.php?type=RSS2&amp;forumids=175</code> and not at other pages like <code>http://www.mpgh.net/forum/external.php?type=RSS2&amp;forumids=168</code></p>
  
  <blockquote>
    <p><strong>Notice</strong>: Trying to get property of non-object in C:\xampp\htdocs\crossfire\index.php on line 7</p>
  </blockquote>
  
  <pre><code>&lt;?php
  $rss = New DOMDocument();
  $rss = simplexml_load_file('http://www.mpgh.net/forum/external.php?type=RSS2&amp;forumids=168'); 
  
  for($i=0;$i&lt;10;$i+=1) {
  
      if (substr($rss-&gt;channel-&gt;item[$i]-&gt;title, 0, 9) == '[Release]') {
          echo "Title: " . $rss-&gt;channel-&gt;item[$i]-&gt;title . "&lt;br&gt;";
          echo "Link: " . $rss-&gt;channel-&gt;item[$i]-&gt;link . "&lt;br&gt;&lt;br&gt;";
      } else {
          echo 'Hoi&lt;br&gt;&lt;br&gt;';
      }
  }
  </code></pre>
  
  <p>Thanks.</p>