Programming Assignment 4
XML Design using DTD and XML Schema

Due on Thursday March 5 before midnight


Description

This project must be done individually. No copying is permitted. The goal of this project is to learn how to describe XML data using DTD and XML Schema. More specifically, you will map a conceptual design into an XML design, create a sample XML document, describe it using DTD and XML Schema, and validate it.

Platform

You will do this project on your own PC/laptop. You may use a text editor to develop your schemas and XML data, but it would be easier if you just use Netbeans. In Netbeans, select New File, then XML, then XML Document, and then Well-Formed Document to develop a new XML document. To create a DTD or an XML Schema, select New File, then XML, then DTD Entity or XML Schema. In Netbeans, there is a way to generate a DTD automatically from an XML file: DON'T use it; you need to develop your DTD yourself.

Here are some examples:

You may validate your XML document against your DTD and XML Schema using Java, Netbeans, or your web browser.

Documentation

The following web pages provide some tutorials. Use them as a reference only.

Project Requirements

Consider the following Entity-Relationship (ER) diagram:

Based on this ER diagram, do the following:

  1. Create a DTD that captures all the information in this ER diagram. You may use the entity keys in the ER diagram as XML attribute or element values to capture the relationships, or you may use special IDs/IDrefs. Avoid data redundancies (do not duplicate pieces of data).
  2. Create an XML document that matches your DTD.
  3. Validate your XML document against your DTD.
  4. Create an XML Schema that matches your XML document.
  5. Validate your XML document against your XML Schema.

What to Submit

Use the form below to submit your files.


Submit this file:


Last modified: 02/24/09 by Leonidas Fegaras