XSD SchemaLesson 93Free preview
XSD Indicators
This lesson is part of XML · All levels
Summary
The indicator determines how the child element is arranged: xs:sequence sequence, xs:choice one, and xs:all free sequence. The indicator can be wrapped in xs:group or xs:attributeGroup so that the same declaration can be reused. The important rule, xs:all should only contain children with minOccurs 0 or 1 so no child can be repeated.
Key points
- xs:sequence: child appears in the order of declaration
- xs:choice: only one branch that appears
- xs:all: free order, but each child maximum once
- xs:group allows reuse of sequence, choice, or all models
- xs:attributeGroup groups attributes to be referenced
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.