Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 1.5.1
-
Fix Version/s: None
-
Component/s: Zend_Feed
-
Labels:None
Description
Hi,
First, this is my first post... If something is wrong in my issue tracker usage, let me know. Actually, Zend_Feed can't read del.icio.us feed, because it uses RSS 1.0. So I improve Zend_Feed_Rss::__wakeUp method as below:
// Check for RSS 1.0 feed if ($doc->getElementsByTagName('RDF')->item(0)) { $this->_element = $doc->getElementsByTagName('RDF')->item(0); } else { // Find the base channel element and create an alias to it. $this->_element = $doc->getElementsByTagName('channel')->item(0); } if (!$this->_element) { /** * @see Zend_Feed_Exception */ require_once 'Zend/Feed/Exception.php'; throw new Zend_Feed_Exception('No root <rdf> or <channel> element found, cannot parse channel.'); }
The changes are in the 'RDF' item check and in the Zend_Feed_Exception message.
Hope this is useful and apologize for any errors.
Issue Links
| This issue duplicates: | ||||
| ZF-405 | Empty items array when parsing rss1.0/RDF feed |
|
|
|
(you should use the