Witam jak wykonać pętlę w schemacie xml, na lureposition?
<lures>
<lure>
<lureName>32</lureName>
<lureCompany>123</lureCompany>
<lureQuantity>2</lureQuantity>
</lure>
<lureposition>
<lureName>32</lureName>
<lureCompany>123</lureCompany>
<lureQuantity>2</lureQuantity>
</lureposition>
<lureposition>
<lureName>32</lureName>
<lureCompany>123</lureCompany>
<lureQuantity>2</lureQuantity>
</lureposition>
</lures>
Schemat ten validuje tylko lure, ale nie wiem jak zrobić pętle na lureposition
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="lures">
<xs:complexType>
<xs:sequence>
<xs:element name="lure">
<xs:complexType>
<xs:sequence>
<xs:element name="lureName" type="xs:string"/>
<xs:element name="lureCompany" type="xs:string"/>
<xs:element name="lureQuantity" type="xs:integer"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Znalazłem generator:
http://xmlgrid.net/xml2xsd.html