Element of Complex Type

The following XML schema construct:

<element name="PersonElement" type="Person"></element>
<complexType name="Person">
 <sequence>
  <element maxOccurs="1" minOccurs="1" name="name">
  <simpleType>
  <restriction base="string">
  <maxLength value="50"></maxLength>
  </restriction>
  </simpleType>
  </element>
 </sequence>
</complexType>

Maps to a Business Object Model Class representing the Person ComplexType:

Maps to:

The global element "PersonElement" is not represented directly on the Business Object Model diagram. Instead, the Class "Person" has a stereotype applied to it that stores data representing all the global elements in the original schema that were of this type.