Hi,
Is it possible to to define a complex type that allow an inside element to appear multiple times. The order should not be important.
Example:
<xs:element name="BIL">
<xs:complexType>
<xs:all>
<xs:element name="TRAFIKBONUS" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="BILMERKESKOD" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="6" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<!-- ref -->
<xs:element ref="PREMIE" />
<xs:element ref="RABATT" />
</xs:all>
</xs:complexType>
</xs:element>
I want "PREMIE" to be able appear multiple times but the order of the other elements shall not make any difference.
Is it possible to to define a complex type that allow an inside element to appear multiple times. The order should not be important.
Example:
<xs:element name="BIL">
<xs:complexType>
<xs:all>
<xs:element name="TRAFIKBONUS" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="BILMERKESKOD" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="6" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<!-- ref -->
<xs:element ref="PREMIE" />
<xs:element ref="RABATT" />
</xs:all>
</xs:complexType>
</xs:element>
I want "PREMIE" to be able appear multiple times but the order of the other elements shall not make any difference.