Page 1 of 1

RSS doesn't validate

Posted: Wed Apr 04, 2007 12:40 am
by wcw
I recently found http://validator.w3.org/feed/ and turned it onto my serendipity RSS2/atom feeds. Each may work in my newsreaders, but each failed validation with one niggling error

Why should any serendipity feed ever fail to validate, even on a small error?

Curious,

A

Posted: Wed Apr 04, 2007 3:46 pm
by judebert
It shouldn't. We've tried pretty hard to stick with the standards.

Of course, feeds are templated. If you've modified the templates, it could invalidate the feed.

And we're only human. There could be mistakes.

What error do you get?

Posted: Fri Apr 06, 2007 9:11 pm
by wcw
judebert wrote:If you've modified the templates, it could invalidate the feed.
I haven't, unless you can modify them by accident.
judebert wrote:What error do you get?
The Atom feed reports, "XML parsing error: <unknown>:43:86: not well-formed (invalid token)"

The RSS feed gave a complaint because I left height and width blank. The fix is to fill them in, but it would be nicer if I'd gotten an error from the plugin.

Posted: Tue Apr 10, 2007 10:20 am
by garvinhicking
Hi!

To see what the error is, we would need your URL. By default, serendipity's XML and Atom feeds validate, but your content can throw of RSS feeds if they are not well-formed. Sadly there is little magic that serendipity can apply to correct things like "<b>my bold!</strong>" mistakes...
The RSS feed gave a complaint because I left height and width blank. The fix is to fill them in, but it would be nicer if I'd gotten an error from the plugin.
In which element did you leave that blank? How would serendipity get to know the height and width, if you do not specify it?

Best regards,
Garvin