Hi,
By default, the atoms feed produced by wikipedia is not valid: http://feedvalidator.org/check.cgi?url=http%3A%2F%2Fmeta.wikimedia.org%2Fw%2...
There are 3 errors.
The first one, "missing of namespace", is easy to fixed. 'xmlns="http://purl.org/atom/ns#"' must be add to the "feed" element printed by outHeader method of the AtomFeed class (line 153 of the 1.3beta5 version of wikipedia).
The second one, "Undefined entry element: comment" seems to be a bug of the validator: Comments are not elements.
The last one is more complexe. In an atom feed, each entry must have an id. This id must identify the entry: http://www.mnot.net/drafts/draft-nottingham-atom-format-02.html#rfc.section....
Has someone a suggestion about how-to produce a good Id element?
On Fri, 23 Jul 2004, Timwi wrote:
Michaël P. wrote:
Has someone a suggestion about how-to produce a good Id element?
If it only needs to be unique and is not subject to any other constraints, wouldn't the curid resp. oldid plus the date/time of the revision be enough?
This should help:
http://diveintomark.org/archives/2004/05/28/howto-atom-id
--jeremy
wikitech-l@lists.wikimedia.org