Quote:
Implement a Perl script that takes an XML file (from standard input) containing RSS news feed information and prints (to standard output) an HTML file containing the title (as a link) and description of each item (including the channel itself).
Notes
1. You cannot use any XML parsing libraries/packages/classes to implement your solution. You have to process the file yourself. There is no need to work with DOM objects yet.
2. You must support all 3 RSS standards (0.91, 1.0 and 2.0).
3. Some RSS feeds include content items (in addition to descriptions). If the content is present you may use it instead of the description text. Again, make sure you test this scenario...
4. If an enclosure (usually referred to as a podcast) is found include a link to it.
6. In order to include angle brackets (< and >) and ampersands (&) within the XML file they will be encoded as "<", ">", and "&". Make sure you convert these so they appear correctly in the HTML file.
|
These were my instructions, can anyone help me get started. Since I can't user modules I have no idea where to even begin. Apparently the solution shouldn't be too long either, but I assumed it would be ridiculously long without modules or packages etc..Thanks in advance