XML Schema knows three basic content models:

  • all
  • sequence 
  • choice

All corresponds to the UML content model, or all names of sub-elements must be unique, the order being irrelevant. This is also the default content model of the generated XML Schema.

Sequence means all XML elements are ordered. This is implicitly given if the order constraint is defined for all associations.

Choice means an exclusive occurrence of all elements within the choice. This is symbolized by giving associations a common choice tagged value.

Figure: Mapping

  • No labels