Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Does this meet your needs?</p> <pre><code> &lt;xs:element name="MyType" type="MyType.Type"/&gt; &lt;xs:complexType name="MyType.Type"&gt; &lt;xs:sequence&gt; &lt;xs:group ref="CollectedTypeGroup" minOccurs="0" maxOccurs="unbounded"/&gt; &lt;xs:choice minOccurs="0"&gt; &lt;xs:sequence&gt; &lt;xs:element name="MyType.PropertyOne" type="PType1.Type"/&gt; &lt;xs:group ref="CollectedTypeGroup" minOccurs="0" maxOccurs="unbounded"/&gt; &lt;xs:sequence minOccurs="0"&gt; &lt;xs:element name="MyType.PropertyTwo" type="PType2.Type"/&gt; &lt;xs:group ref="CollectedTypeGroup" minOccurs="0" maxOccurs="unbounded"/&gt; &lt;/xs:sequence&gt; &lt;/xs:sequence&gt; &lt;xs:sequence&gt; &lt;xs:element name="MyType.PropertyTwo" type="PType2.Type"/&gt; &lt;xs:group ref="CollectedTypeGroup" minOccurs="0" maxOccurs="unbounded"/&gt; &lt;xs:sequence minOccurs="0"&gt; &lt;xs:element name="MyType.PropertyOne" type="PType1.Type"/&gt; &lt;xs:group ref="CollectedTypeGroup" minOccurs="0" maxOccurs="unbounded"/&gt; &lt;/xs:sequence&gt; &lt;/xs:sequence&gt; &lt;/xs:choice&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;xs:group name="CollectedTypeGroup"&gt; &lt;xs:choice&gt; &lt;xs:element name="CollectedType" type="CollectedType.Type"/&gt; &lt;xs:element name="DerivedCollectedType" type="CollectedType.Type"/&gt; &lt;xs:element name="DerivedCollectedType2" type="CollectedType.Type"/&gt; &lt;/xs:choice&gt; &lt;/xs:group&gt; &lt;xs:complexType name="CollectedType.Type"&gt; &lt;xs:attribute name="name" type="xs:string"/&gt; &lt;/xs:complexType&gt; &lt;xs:complexType name="PType1.Type"&gt; &lt;xs:sequence&gt; &lt;xs:element name="PType1"&gt; &lt;xs:complexType&gt; &lt;xs:attribute name="Value" type="xs:string"/&gt; &lt;/xs:complexType&gt; &lt;/xs:element&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;xs:complexType name="PType2.Type"&gt; &lt;xs:sequence&gt; &lt;xs:element name="PType2"&gt; &lt;xs:complexType&gt; &lt;xs:attribute name="Value" type="xs:string"/&gt; &lt;/xs:complexType&gt; &lt;/xs:element&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload