Chapter 5
XML Schema: Complex Types
Examples
- Example 5-1
- Example 5-2
- Example 5-3
- Example 5-4
- Example 5-5
- Example 5-6
- Example 5-7
- Example 5-8
- Example 5-9
- Example 5-10
- Example 5-11
- Example 5-12
- Example 5-13
- Example 5-14
- Example 5-15
- Example 5-16
- Download all Chapter 5 code (chapter5.zip)
Complex Types
XML Schema defines a complex-type element as any element that contains an attribute or contains other XML elements. You can determine which elements can appear and in what order. You can also create your custom complex types, a common practice.