1

I'm trying to get the RSS feed from a WordPress.com blog with SimpleXML, but the content node is missing.

Here's my code:

$feed = file_get_contents('http://blog.wordpress.com/category/category-name/feed');
$xml = simplexml_load_string($feed);
var_dump($xml);

On the URL itself, there is a content:encoded. Also var_dump($feed) shows the content. But somehow after simplexml, the content node is missing.

Any thoughts?

i alarmed alien
  • 9,412
  • 3
  • 27
  • 40

0 Answers0