Kunal Anand: Some XML exam questions

Kunal has almost picked up my challenge on his blog: come up with deep homework questions having to do with XML.

  • Given at least 10 blog/link feeds, determine the top ten outbound URLs?
  • Parse an iTunes library file and capture all the unique artist/albums.
  • Given a user’s XML file from del.icio.us, determine the top 10 intersecting tags.
  • Scrape a dynamic list from a web site (i.e. the Google Zeitgeist) and serialize a well-formed Atom feed.

The last one seems like mostly hard labour probably requiring quite a bit of fiddling.

The other ones are all interesting because they are examples of aggregation and that’s not trivial to do in XSLT/XPath. Naturally, Kunal suggests to solve these problems using a nice script language like Python, but solving them in XSLT is much more fun because it is harder.

Published by

Daniel Lemire

A computer science professor at the University of Quebec (TELUQ).

Leave a Reply

Your email address will not be published. The comment form expects plain text. If you need to format your text, you can use HTML elements such strong, blockquote, cite, code and em. For formatting code as HTML automatically, I recommend tohtml.com.

You may subscribe to this blog by email.