Feed Validation - Invalid Parsing?

Discussion corner for Developers of Serendipity.
Post Reply
Brendon K
Regular
Posts: 44
Joined: Thu Feb 23, 2006 10:35 pm
Location: Saratoga Springs, NY, USA
Contact:

Feed Validation - Invalid Parsing?

Post by Brendon K »

I've tested some of my RSS feeds using FeedValidator.org. They've come up as being invalid. Also, Firefox v1.5.x will not view these feeds properly, and declares an error. Firefox v2.0.0 is more forgiving, apparently and works fine (so please don't test with that version).

Here's the feed validator URL for my direct RSS 2.0 feed validation:
http://www.feedvalidator.org/check.cgi? ... index.rss2

I'm not a master of proper RSS rules by any means, but I'm willing to inspect these problems and post some code fixes, which is why I'm posting here...I suspect I'll have some code changes eventually, and something to post here. :)

I need to know a couple things first though (if anyone knows).

1.) Is (serendipity_root)/rss.php the only file that handles the feeds?
2.) Are these feeds cached or stored anywhere, or created dynamically on every load?
3.) If they're cached or saved somehow, is there a way to regenerate them?

Thanks! I hope that'll be all I need. If there's anything else, by all means lemme know!

P.S. - I upgraded my blog to the current available downloadable (on Sourceforge downloads) Beta. The error still exists.
They say, "Practice makes perfect," yet they also say, "Nobody's perfect." I don't get it.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Feed Validation - Invalid Parsing?

Post by garvinhicking »

Hi!

Hm, it seems the invalidity is caused by your entry contents, not the RSS feed building function itself. Sadly feedvalidator is down right now so I can't check the exact cause.
1.) Is (serendipity_root)/rss.php the only file that handles the feeds?
Yes.
2.) Are these feeds cached or stored anywhere, or created dynamically on every load?
They are created dynamically, each time.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Brendon K
Regular
Posts: 44
Joined: Thu Feb 23, 2006 10:35 pm
Location: Saratoga Springs, NY, USA
Contact:

Post by Brendon K »

Hi Garvin! Thanks for the quick (as always) response!

I'm certain it's due to my content. I didn't think to first check my HTML Validation, however I just did and according to the W3C's validator, my page is valid XHTML Transitional (and by forcing a change to check for Strict validity, it is also Tentatively Valid XHTML Strict).

So, this makes me believe that something in the character entity parsing needs to be tweaked. Perhaps not for all feed types, but maybe for one or two types? Now that I have a single point of failure (rss.php) I can take a closer look and see what I find (hopefully it will be simple). Thanks again!
They say, "Practice makes perfect," yet they also say, "Nobody's perfect." I don't get it.
Post Reply