Schema Terminology
- To define a class of XML documents, you define element and attribute types:
- An element that only contains text is said to have simple type (eg,
Surname, Email)
- An element that contains subelements or has attributes is said to have complex type
(eg,
Staff)
- All attributes have simple type
- Schemas define which elements and attributes can appear in a document
- It may define new types (simple and complex) to achieve this