I think it would be good if the RDF/RSS part of perlmonks would be updated, at least there is a problem with the liferea feed reader and the RDF format of the site.

The 0.9 DTD says
<!ELEMENT rdf:RDF (channel | image? | item+
| textinput?)*>
but the feed provides the following:
<rdf:RDF>
   <RDF>
      <channel>
         ...
      </channel>
      <item>
          ....
      </item>
      ...
   </RDF>
</rdf:RDF>

Replies are listed 'Best First'.
Re: perlmonks RDF/RSS update?
by theorbtwo (Prior) on Dec 17, 2003 at 13:40 UTC

    You're quite right. As noted, I belive, everwhere that links to it, it's mildly broken. I'd love to fix it, but unfornatly it seems to be a sepperate CGI, not a node at all, so I have no access to the code.

    Sorry. It should be easy to preprocess the input into something your parser would like. If the extract above is accurate, then s|</?RDF>||g ought to do it.


    Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

      Huh. And I thought it'd be enough to recast that as a XML file that brings in NN with XInclude or something (I'm a raw beginner when it comes to XLink stuff) and then apply client-side XSLT to create the RSS feed. I mean, why do all that server-side when XML provides enough tools for client-side to do it?