El Sequence
# XML Schema sequence Element
* * Complete XML Schema Reference Manual](#)
* * *
## Definition and Usage
The sequence element requires that the elements in the group appear in the containing element in the specified order. Each child element can occur zero to any number of times.
### Element Information
* **Parent Element:** group, choice, sequence, complexType, restriction (both simpleContent and complexContent), extension (both simpleContent and complexContent)
### Syntax
(annotation?,(element|group|choice|sequence|any)*)
(The ? indicates that the element may occur zero or one time within the sequence element.)
| Attribute | Description |
| --- | --- |
| id | Optional. Specifies a unique ID for the element. |
| maxOccurs | Optional. Specifies the maximum number of times the any element can occur within the parent element. The value can be an integer greater than or equal to zero. To specify no limit on the maximum occurrences, use the string "unbounded". Default is 1. |
| minOccurs | Optional. Specifies the minimum number of times the any element can occur within the parent element. The value can be an integer greater than or equal to zero. To specify that this any group is optional, set this attribute to zero. Default is 1. |
| any attributes | Optional. Specifies any other attributes with non-schema namespaces. |
### Example 1
This example is a declaration for the "personinfo" element, which must contain the following five elements in order: "firstname", "lastname"
YouTip