in reply to Need help understanding RSS script?

It works like this:
  • You get an RSS address (like a commercial flier) that may be from a site (http://site.com/file.rss or http://site.com/cgi-bin/give.cgi/myRSS). Or from your local machine (you have the rss-file at some directory) file.rss.
  • Now you call this script to transform the XML to a simple html page (another form of XML, in fact). That page should contain some news. That is: a title of the site, an image, some lines that have a title of a news, some text explaining a little more, and a link to the site where you could read all the refered article.
  • This script has thought all the XML tag substitutions. Calling the RSS module instead of having only one way of showing the RSS content it uses certain hashes that contain the parsed elements. These are hashes inside hashes. (see perldoc) keeping the same structure of the XML tree (like folders and subdirectories). You have the content of all the RSS inside those variables. Just keep trying some until you see how they work.

    Hope it helps!

    • Comment on Re: Need help understanding RSS script?