The following table shows the mappings from the relationship type, existence, and cardinality of a logical data model to the XML schema contained elements.
Logical Data Model - relationship type | Logical Data Model - existence | Logical Data Model - cardinality | XML schema - Contained elements | XML schema - MinOccurs / MaxOccurs of parent contained element | XML schema - MinOccurs / MaxOccurs of child contained element |
---|---|---|---|---|---|
Many to many | Optional | */(1..*) | Bidirectional | */(1..*) | * |
Many to many | Mandatory | */(1..*) | Bidirectional | */(1..*) | 1..* |
Non-identifying | Optional | (0..1)/1/*/(1..*) | Bidirectional | (0..1)/1/*/(1..*) | 0..1 |
Non-identifying | Mandatory | (0..1)/1/*/(1..*) | Bidirectional | (0..1)/1/*/(1..*) | 1 |
Identifying | Not applicable (mandatory) | (0..1)/1/*/(1..*) | Unidirectional | (0..1)/1/*/(1..*) | Not applicable |