I'm using simplexml_load_file() to fetch my Twitter RSS feed and process it:
$feed = 'http://twitter.com/statuses/user_timeline/user.rss';
$tweets = simplexml_load_file($feed)
The data itself looks like this:
<item>
<title>Title</title>
<description>This is a description</description>
<pubDate>Sun, 15 Aug 2010 18:21:20 +0000</pubDate>
<guid>http://twitter.com/XXX</guid>
<link>http://twitter.com/XXX</link>
<twitter:source>Tweetie for Mac</twitter:source>
<twitter:place/>
</item>
Everything works as expected, except <twitter:source>
and <twitter:place>
are never loaded into the $tweets array.
How can I modify this code so that all the fields are processed?
Thanks!