Entity
Name of the entity. Must be unique amongst its siblings.
This will also be the (local) name of the corresponding XSD element.
Whether this entity is optional (can be omitted) or is required (must always appear). The root entity of a message is always required.
On the corresponding XSD element, this will result in minOccurs="0"
or minOccurs="1"
respectively.
Whether this represents a list of entities or a single entity. The root entity of a message is always a single entity.
On the corresponding XSD element, this will result in maxOccurs="unbounded"
or maxOccurs="1"
respectively.
Name of the entity. Must be unique amongst its siblings.
This will also be the (local) name of the corresponding XSD element.
Whether this entity is optional (can be omitted) or is required (must always appear). The root entity of a message is always required.
On the corresponding XSD element, this will result in minOccurs="0"
or minOccurs="1"
respectively.
Whether this represents a list of entities or a single entity. The root entity of a message is always a single entity.
On the corresponding XSD element, this will result in maxOccurs="unbounded"
or maxOccurs="1"
respectively.
By default entities will be represented in the XSD as a xs:complexType
with a xs:sequence
containing all child attributes and entities. Example of such an XML structure:
<Weight>
<Unit>kg</Unit>
<Value>100</Value>
</Weight>
Sometimes an external system requires an entity to be represented in the XSD as a xs:complexType
with a xs:simpleContent
that extends a simple type. In these specific cases you should switch to using "simple content". The same XML example would then look like this:
<Weight unit="kg">100</Weight>
To achieve this for the above example, you'd have to enable XSD simple content for attribute Value. Visually this is indicated by showing the attribute name in parentheses. The following restrictions apply to entities with "simple content":
- Exactly one attribute may have XSD simple content enabled and must not have XSD attribute enabled
- All other attributes of the same entity must have XSD attribute enabled
- The entity is not allowed to contain any child entities