Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xml-schema problem

Status
Not open for further replies.

levren

Programmer
Aug 9, 2007
1
SE
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top