CSC 513 Programming Assignment 2: Transform XML


Description

This project is intended to let students use XQuery to transform/query XML file.

Amazon.com use RSS feeds to publish contents to other sources. One example is that the popular science and fiction products are published through http://www.amazon.com/rss/tag/sci-fi/popular/ref=tag_rsh_hl_erso. Your XQuery is supposed to query XML file (from the RSS feeds) to return a sorted list of the item titles. Detailed requirement is:

INPUT: XML file

OUTPUT: all item titles (rss/channel/item/title) sorted by the item publishing date (rss/channel/item/pubDate) with the newest the first, the oldest the last

Caveat: “order by” in XQuery cannot correctly sort RSS pubDate data like “Sat, 13 Jun 2009 01:07:33 GMT”. You need to process it correctly.

Helpful Materials

1.      Download Saxon

http://saxon.sourceforge.net/

2.      Use Saxon

http://courses.ncsu.edu/csc513/lec/001/listings/XPath/saxon.bat

3.      RSS information

http://www.amazon.com/gp/tagging/rss-help.html

Deliverables

Name your XQuery file as unity-id.xq and submit it through wolfware. Include a readme if necessary.


Last Update: Feb 07, 2010
Xibin Gao (xgao2@ncsu.edu)