Hi
I´m having trouble with my xml schema.
My problem is that I want the element "PREMIE" to be able to occur several times. The other elements has to be independent of order. The element names are in swedish but that shouldn´t be a problem.
Here is the .xsd-file:
<xs:element name="BIL">
<xs:complexType >
<xs:all>
<xs:element name="TRAFIKBON US" minOccurs="0">
<xs:simpleTyp e>
<xs:restricti on base="xs:string ">
<xs:maxLength value="2" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="BILMERKES KOD" minOccurs="0">
<xs:simpleTyp e>
<xs:restricti on 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 really need this to work.
Thanks!
I´m having trouble with my xml schema.
My problem is that I want the element "PREMIE" to be able to occur several times. The other elements has to be independent of order. The element names are in swedish but that shouldn´t be a problem.
Here is the .xsd-file:
<xs:element name="BIL">
<xs:complexType >
<xs:all>
<xs:element name="TRAFIKBON US" minOccurs="0">
<xs:simpleTyp e>
<xs:restricti on base="xs:string ">
<xs:maxLength value="2" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="BILMERKES KOD" minOccurs="0">
<xs:simpleTyp e>
<xs:restricti on 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 really need this to work.
Thanks!
Comment