Name

xs:sequence

Attributes

maxOccurs

Any non-negative integer or unbounded

minOccurs

Any non-negative integer

Contents

xs:annotation?, ( xs:element | xs:group | xs:choice |
                  xs:sequence | xs:any )*

The xs:sequence element specifies that the definitions included inside it (xs:element, xs:group, xs:choice, xs:sequence, or xs:any) must appear in the order they are listed. When the xs:sequence element is used outside an xs:group element, the maxOccurs and minOccurs attributes may set the number of times this choice can happen. The default is 1, but it can be set higher—even to unbounded—allowing the creation of elements that contain an arbitrary number of repetitions of a particular sequence of elements.

Get XML Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.