Workshop
The Workshop is designed to help you anticipate possible questions, review what you've learned, and begin learning how to put your knowledge into practice.
Quiz
| 1. |
What is the purpose of a schema? |
| 2. |
If you wanted to create a schema for a markup language with specific data types, such as integer numbers and dates, which schema technology would you need to use? |
| 3. |
What is the difference between valid and well-formed documents? |
Quiz Answers
| 1. |
A schema describes the exact elements and attributes that are available within a given markup language, along with which attributes are associated with which elements and the relationships between the elements. |
| 2. |
XML Schema is the schema technology of choice for schemas that require specific data types such as integer numbers and dates. |
| 3. |
Well-formed documents must adhere to the general XML rules, whereas valid documents must also adhere to a schema. |
Exercises
| 1. |
Modify the ETML DTD so that it includes a new attribute of the session element that stores a rating for the training sessionthe rating indicates how well you felt during the session on a scale of 1 to 10. Design the new rating attribute so that it is constrained to a list of numeric values between 1 and 10. |
| 2. |
Modify the trainlog.xml document so that it takes advantage of the new rating attribute. |