RSS "no element found at line 1"

mrchips - July 1, 2005 - 18:30
Project:Node Aggregator
Component:RSS parsing
Category:bug report
Priority:critical
Assigned:Unassigned
Status:won't fix
Description

I get the "no element found at line 1" error. I see this is common in searching the internet. Here are two code snippets of XML; one works and one does not work. I think, but only guestimating, that the problem is simply the blank line between elements. I've read the parsing may be according to standard, however nearly every browser with RSS read capability successfully reads the 'DOES NOT WORK' code below... If this could be written to accomodate blank line rudeness, it would benefit many people who would like to use Drupal. Thanks.

WORKS:

<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:photo="http://www.pheed.com/pheed/" xmlns:pb="http://snaplog.com/backend/PhotoBlog.html">
<channel>
<title>RFFA Photo Gallery</title>
<link>http://spiral.he.net/~rffa/gallery</link>
<description>7 photos in 1 album</description>
<language>en-US</language>
<lastBuildDate>Fri,  1 Jul 2005 10:11:54 -0700</lastBuildDate>
<managingEditor>chip@spiral.com</managingEditor>
<webMaster>chip@spiral.com</webMaster>
<generator>Gallery 1.5, http://gallery.menalto.com/</generator>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<ttl>40</ttl>
<image>
<title>RFFA Photo Gallery</title>

DOES NOT WORK:
<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0">
<channel>
<title>kaisernetwork.org: HIV/AIDS Daily Report</title>
<link>http://kaisernetwork.org/</link>
<language>en-us</language>
<copyright>kaisernetwork.org is a free service of the Henry J. Kaiser Family Foundation.</copyright>
<managingEditor>info@kaisernetwork.org</managingEditor>
<pubDate>Fri, 1 Jul 2005 13:11:26 EST</pubDate>
<image>
  <title>kaisernetwork.org</title>
  <url>http://www.kffheadlines.org/headlines/kn_logo_RSS.gif</url>
  <link>http://kaisernetwork.org/</link>
  <width>263</width><height>50</height>
</image>

#1

Bèr Kessels - February 28, 2007 - 11:59
Version:»
Status:active» won't fix

This module is deprecated in favour of http://drupal.org/project/feedparser

 
 

Drupal is a registered trademark of Dries Buytaert.