php's simplexml_load_file() not loading all keys

leesdepth

New Member
I'm using simplexml_load_file() to fetch my Twitter RSS feed and process it:\[code\]$feed = 'http://twitter.com/statuses/user_timeline/user.rss';$tweets = simplexml_load_file($feed)\[/code\]The data itself looks like this:\[code\]<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>\[/code\]Everything works as expected, except \[code\]<twitter:source>\[/code\] and \[code\]<twitter:place>\[/code\] are never loaded into the $tweets array.How can I modify this code so that all the fields are processed?Thanks!
 
Back
Top