Sequence Content Model

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" ...>
  <xsd:complexType name="type-name">
    <xsd:sequence>
      <xsd:element name="element1"/>
      <xsd:element name="element2"/>
    </xsd:sequence>
  </xsd:complexType>
</schema>
		  
  • Specifies a sequence of elements. [(element1, element2)]

  • Sequence content models can contain elements and any content model.

  • Use maxOccurs and minOccurs attributes to define the number of times the sequence should (is allowed to) be repeated.