FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
 xml for an empty feed View next topic
View previous topic
Post new topicReply to topic
Author Message

Joined: 24 Oct 2010
Posts: 1

PostPosted: Sun Oct 24, 2010 9:59 am Reply with quoteBack to top


I've seen a similar question posted here without a reply, but hopefully I'll get lucky ;)

I'm kind of new to rss feeds, but I'm able to create a feed dynamically using PHP and it works great. My problem is that occasionally the feed doesn't have any items (I limit the age of feed items to 60 days, and sometimes nothing has happened in that time).

What I would expect to happen is that I just simply wouldn't have any <item>'s in my xml page. However, when I do it that way, the feed reader (at least the Google one) seems to be a little borked. Even though the XML contains the name of the feed properly still, it shows up without a title.

The only way I've found so far to fix this is to put a dummy item in, that is simply <item><title></title></item>. Then my Google reader finds the name of the feed properly, and it just looks like a blank feed.

It seems that is a hokey solution that is likely incorrect. Is there some standard way to deal with the XML presentation for an empty feed?

View user's profile
Tech Support

Joined: 27 Aug 2004
Posts: 2793

PostPosted: Mon Oct 25, 2010 9:28 am Reply with quoteBack to top

I've seen something similar to this happen with someone who was using Yahoo feeds. There were errors in the feed itself that were only spawned once every few times but the actual XML errors prevented the output from being coded properly, hence the blank pages. Unfortunately, we found no way to fix the problem because the issue is in the original Feed content.

Create RSS Feeds
Audio Recording and Editing
View user's profile
Display posts from previous:      
Post new topicReply to topic

 Jump to:   

View next topic
View previous topic

Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme