Assignment # 6
Learning Goals
- Develop hands-on experience with an XML document.
- Understand how to create and modify a DTD.
Project
This assignment is part of Project#1.
Assignment
Develop a DTD that captures all the information in a typical response to the Sun registration form (e-mail, name, topics of interest, etc.).
Your program should accomplish the following:
- Develop a DTD that is able to describe an XML document containing all the
items in a response to the form.
- Create an XML document that contains the data in a typical response and that is consistent (i.e., valid) with
your DTD.
- Submit both files, the DTD and the XML file, to your TA.
Hints:
- You should group related items together. For example, first name and last name might both be children of a name element.
- It will be easier if you use an XML editor for this assignment. Two suitable editors are XML Spy and EditiX.
- If you need to look up the syntax for your DTD, you can access Chapter 3 in the XML in a Nutshell book, located within Safari books on-line.
- Another great reference for this assignment is the XSLT 2.0 Chapter
available on-line. This chapter discusses strategies for designing an XML document that can later be converted into a Web page (as you will
do in this project). In particular, Section 3.6 of the chapter refers to the issues in representing image URLs.