Lost Password?


Go Back   CodeCall Programming Forum > Web Development Forum > Perl

Perl Discussion for the PERL language - Practical Extraction and Reporting Language, is a programming language often used for creating CGI programs.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-12-2008, 08:52 PM
John_L John_L is offline
Newbie
 
Join Date: May 2008
Posts: 10
Rep Power: 0
John_L is on a distinguished road
Default XML Parser

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 05-13-2008, 08:22 PM
KevinADC KevinADC is offline
Learning Programmer
 
Join Date: Jan 2007
Posts: 91
Rep Power: 7
KevinADC is on a distinguished road
Default Re: XML Parser

If you get stuck in a very specific part of your existing program then you would probably get some help, but just posting your program requirments will only make people ignore you, especially since it appears to be school/course work.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
XML parser in Java Java_Chick Java Help 7 05-05-2008 05:05 PM
Programming a SAX-RSS Parser In 30 Minutes Flat bcoe Java Tutorials 0 02-19-2008 08:08 PM
Im at my wits end with this XML parser! Salrandin C and C++ 4 10-26-2007 10:10 AM
I dont understand this parser code Salrandin C and C++ 3 10-24-2007 12:56 AM
Help in SLR parser vithasekar C and C++ 3 02-15-2007 02:50 AM


All times are GMT -5. The time now is 05:38 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 98%

Ads