CS 315 Homework 6: XML

Assigned: 13 November 2017   Due: 8 December 2017

This homework assignment is to be done individually, not in pairs or other groups. Your completed assignment should be submitted using the Assignment Submission Page. You should submit (in one submission) the URLs of the various files involved. That means you should create a simple HW6 webpage that has links to all your files and submit the URL of that page.

  1. Design an XML document to store information about CS classes. Information about classes must include title, course number (e.g., 315 for this course), professor (first, last for as many professors as there are), meeting time, meeting place, CRN number, and start and end dates (month, year at least). Both attributes and nested tags must be included. Make up sample data for at least 3 classes.
  2. Write a DTD for the document described in the previous question with the following restrictions: all of the fields except meeting place and meeting time are required. Each course must have at least one professor. Give me a version of your XML data file with the DTD indicated at the top using a working DOCTYPE (hint: you need to use SYSTEM and a complete URL), so that I can validate your page just as you should validate your page.
  3. Create a CSS style sheet for the XML document you have created that displays the information in a reasonably readable way. Hook this up to your page, so that I can see what the displayed document looks like.