Quantcast
Channel: Parsing RSS with PHP - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by ThW for Parsing RSS with PHP

Here can be whitespaces between the opening <description> tag and the opening <![CDATA[. This is a text node.So if you access the firstChild of description, you might fetch that whitespace...

View Article


Answer by Isaac for Parsing RSS with PHP

The problem was with CDATA you need to use textContent instead of nodeValue to retreive value beetween <?php$feed = new DOMDocument();$feed->load('http://www.mlssoccer.com/rss/en.xml');$items =...

View Article

Parsing RSS with PHP

I'm trying to parse RSS: http://www.mlssoccer.com/rss/en.xml .$feed = new DOMDocument();$feed->load($url)$items =...

View Article
Browsing latest articles
Browse All 3 View Live