< Back
Page 11 of 11
This chapter is from the book
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
- What is the purpose of a schema?
- 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?
- What is the difference between valid and well-formed documents?
Quiz Answers
- 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.
- XML Schema is the schema technology of choice for schemas that require specific data types such as integer numbers and dates.
- Well-formed documents must adhere to the general XML rules, whereas valid documents must also adhere to a schema.
Exercises
- Modify the ETML DTD so that it includes a new attribute of the session element that stores a rating for the training session—the 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.
- Modify the trainlog.xml document so that it takes advantage of the new rating attribute.
< Back
Page 11 of 11