|
home—lects—hws
D2L—breeze (snow day)
Due:
In this homework, we'll develop a DTD for the movies.xml (remember, use show-source to see the XML.) from last week's homework. (Note that you don't need any XSLT from the previous homework — you can just add the DTD to the XML file.)
(9pts)
Generate a DTD for the grammar
(You can have the DTD either in-line in your xml file, or as an external file.)
Validate the file, using an XML validator such as at
xmlvalidation.com
or
validome.org.
(It is easiest if you only have to upload one file to the validator,
so I recommend keeping the DTD in the same file as your XML data.)
Your DTD must match the three provided movies. Use your best judgement about whether a field that occurs in all three is required, or optional, or allowed to have multiple entries.
Note that there's not much result to “view” for this homework; just the DTD embedded in the xml file, and perhaps the fact that it passes the external validator.
home—lects—hws
D2L—breeze (snow day)
©2016, Ian Barland, Radford University Last modified 2016.Dec.07 (Wed) |
Please mail any suggestions (incl. typos, broken links) to ibarlandradford.edu |