-
-
Save mkf/5ad36fb17a5340c095c7d25fc7eed002 to your computer and use it in GitHub Desktop.
dwin_dtd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XML | |
Exercises for the laboratory | |
Design a data model for a library. A library contains a few storages. | |
Each storage contains shelves with books and magazines from a given | |
domain, eg. “Technology”, “Biology” or “Philosophy”. | |
In the following exercises create an XML file with internal DTD. For | |
validation use eg.: https://www.xmlvalidation.com/ | |
1. Declare the document root “library”. | |
2. Make library contain one or more nodes “storage”. | |
3. Make the “storage” node contain one or more nodes “shelf”. | |
4. Declare an obligatory attribute “domain” of the node “shelf”. | |
5. Design the nodes “book” and “magazine” with appropriate inner nodes, | |
such as title, author... | |
Homework | |
Design a data model for a shop. Shop has a few departments. Each | |
department has shelves with different merchandise, eg. “groceries”, | |
“clothes”. | |
1. Design a data model similar to the library data model. (3 pkt) | |
2. Design at least three types of products. (1 pkt) | |