Introduction: |
Think about how to formalize the rules that describe your blog. The ideal DTD strikes the perfect balance between being too restrictive and too permissive. The design spectrum can be explored most easily by trying to create a varied set of sample entries. |
---|---|
Instructions: |
The DTD should reflect the conceptual model of your blog idea from Assignment 1, and of course the XML created in Assignment 2 must validate against the DTD. Create a document type declaration which establishes the connection between the XML document and the DTD. To make the DTD as good as possible (given the rather small scenario that you will be working on), the following criteria must be satisfied:
If you have any question how these criteria apply to your scenario, please feel free to ask me. If you want to look at examples, the XHTML DTD that is used for many examples in the lecture slides is an excellent example for a well-designed DTD. Submit your DTD and the XML instance document that can be validated against your DTD. |
![]() |
Please send comments to dret@berkeley.edu Last modification: Monday, 02-Feb-2009 07:00:13 CET |
![]() |
![]() |