
4
XML Schemas
4.1 INTRODUCTION TO SCHEMA 139
4.2 COMPLEX TYPES 144
4.2.1 Basics of Simple and Complex Types 144
4.2.2 Specifying the Frequency: minOccurs
and maxOccurs 148
4.2.3 Specifying Element Content 150
4.2.4 Content Model Reuse 154
4.2.5 Anonymous Types 155
4.2.6 Mixed Content 157
4.3 GROUPING OF DATA 159
4.3.1 Mandating All Elements 160
4.3.2 Making Choices 162
4.3.3 Sequences 165
4.4 SIMPLE TYPES 167
4.4.1 Numeric Data Types 167
4.4.2 Time Data Types 168
4.4.3 XML Data Types 169
4.4.4 String Data Types 169
4.4.5 Binary Data Types 170
4.4.6 Other Data Types 170
4.5 DERIVING TYPES ...