I've googled unsuccesfully for this. What I really need is a simple perl program that will parse the xml output of an rss feed into standard html links. The xml is very basic, as follows:
<?xml version="1.0" encoding="ISO-8859-1" ?> - <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xml +ns="http://purl.org/rss/1.0/"> - <channel rdf:about="http://www.shannonlan.com"> <title>www.shannonlan.com</title> <link>http://www.shannonlan.com/cgi-bin/index.cgi</link> <description>www.shannonlan.com - News to Go</description> - <items> - <rdf:Seq> <rdf:li resource="http://www.shannonlan.com/cgi-bin/index.cgi?action +=viewnews&id=248" /> <rdf:li resource="http://www.shannonlan.com/cgi-bin/index.cgi?action +=viewnews&id=247" /> <rdf:li resource="http://www.shannonlan.com/cgi-bin/index.cgi?action +=viewnews&id=246" /> <rdf:li resource="http://www.shannonlan.com/cgi-bin/index.cgi?action +=viewnews&id=245" /> <rdf:li resource="http://www.shannonlan.com/cgi-bin/index.cgi?action +=viewnews&id=244" /> <rdf:li resource="http://www.shannonlan.com/cgi-bin/index.cgi?action +=viewnews&id=243" /> <rdf:li resource="http://www.shannonlan.com/cgi-bin/index.cgi?action +=viewnews&id=242" /> <rdf:li resource="http://www.shannonlan.com/cgi-bin/index.cgi?action +=viewnews&id=241" /> <rdf:li resource="http://www.shannonlan.com/cgi-bin/index.cgi?action +=viewnews&id=240" /> <rdf:li resource="http://www.shannonlan.com/cgi-bin/index.cgi?action +=viewnews&id=239" /> </rdf:Seq> </items> </channel> - <item rdf:about="http://www.shannonlan.com/cgi-bin/index.cgi?action= +viewnews&id=248"> <title>More B5 in the works?</title> <link>http://www.shannonlan.com/cgi-bin/index.cgi?action=viewnews&id +=248</link> </item> - <item rdf:about="http://www.shannonlan.com/cgi-bin/index.cgi?action= +viewnews&id=247"> <title>Babylon 5 Season 5 DVD Box Set Review</title> <link>http://www.shannonlan.com/cgi-bin/index.cgi?action=viewnews&id +=247</link> </item> - <item rdf:about="http://www.shannonlan.com/cgi-bin/index.cgi?action= +viewnews&id=246"> <title>Latest Trailer for Battle for Middle Earth</title> <link>http://www.shannonlan.com/cgi-bin/index.cgi?action=viewnews&id +=246</link> </item> - <item rdf:about="http://www.shannonlan.com/cgi-bin/index.cgi?action= +viewnews&id=245"> <title>Free Tribes and Tribes 2!</title> <link>http://www.shannonlan.com/cgi-bin/index.cgi?action=viewnews&id +=245</link> </item> - <item rdf:about="http://www.shannonlan.com/cgi-bin/index.cgi?action= +viewnews&id=244"> <title>ATi Unveils new Graphics Card</title> <link>http://www.shannonlan.com/cgi-bin/index.cgi?action=viewnews&id +=244</link> </item> - <item rdf:about="http://www.shannonlan.com/cgi-bin/index.cgi?action= +viewnews&id=243"> <title>SASSER virus!</title> <link>http://www.shannonlan.com/cgi-bin/index.cgi?action=viewnews&id +=243</link> </item> - <item rdf:about="http://www.shannonlan.com/cgi-bin/index.cgi?action= +viewnews&id=242"> <title>THG Shows Us How...</title> <link>http://www.shannonlan.com/cgi-bin/index.cgi?action=viewnews&id +=242</link> </item> - <item rdf:about="http://www.shannonlan.com/cgi-bin/index.cgi?action= +viewnews&id=241"> <title>First Unreal Tournament 2004 patch coming soon?</title> <link>http://www.shannonlan.com/cgi-bin/index.cgi?action=viewnews&id +=241</link> </item> - <item rdf:about="http://www.shannonlan.com/cgi-bin/index.cgi?action= +viewnews&id=240"> <title>FREE Softimage Experience for Half-Life 2</title> <link>http://www.shannonlan.com/cgi-bin/index.cgi?action=viewnews&id +=240</link> </item> - <item rdf:about="http://www.shannonlan.com/cgi-bin/index.cgi?action= +viewnews&id=239"> <title>EA Games: The Third Age</title> <link>http://www.shannonlan.com/cgi-bin/index.cgi?action=viewnews&id +=239</link> </item> </rdf:RDF>
As you can see this is simply a set of Http Links. I was surprised to find that no parser of this sort appears to be available. I found several Javascript and PHP solutions, but none in Perl.

Oh, and just a proviso, I am running my site on a remote server so I can't install Perl Modules, everything needs to be pretty much standard.

Thanks,
Alatar


In reply to Perl program for displaying RSS feed? by Alatar

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.