Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Maybe something like this?</p> <pre><code>&lt;schema elementFormDefault = "qualified" xmlns = "http://www.w3.org/2001/XMLSchema" xmlns:xs = "http://www.w3.org/2001/XMLSchema" xmlns:tns = "urn:cheeso.examples.2009.05.listofbooks" targetNamespace = "urn:cheeso.examples.2009.05.listofbooks" &gt; &lt;element name="Shelf" nillable="true" type="tns:BookShelf" /&gt; &lt;complexType name="BookShelf"&gt; &lt;sequence&gt; &lt;element minOccurs="0" maxOccurs="1" name="Store" type="tns:ArrayOfChoice1" /&gt; &lt;/sequence&gt; &lt;/complexType&gt; &lt;complexType name="ArrayOfChoice1"&gt; &lt;choice minOccurs="0" maxOccurs="unbounded"&gt; &lt;element minOccurs="1" maxOccurs="1" name="newBook" nillable="true" type="tns:newBook" /&gt; &lt;element minOccurs="1" maxOccurs="1" name="oldBook" nillable="true" type="tns:oldBook" /&gt; &lt;/choice&gt; &lt;/complexType&gt; &lt;complexType name="Book"&gt; &lt;attribute name="name" type="string" /&gt; &lt;/complexType&gt; &lt;complexType name="newBook"&gt; &lt;complexContent mixed="false"&gt; &lt;extension base="tns:Book" /&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;complexType name="oldBook"&gt; &lt;complexContent mixed="false"&gt; &lt;extension base="tns:Book" /&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/schema&gt; </code></pre> <p>Of course you could simplify to </p> <pre><code>&lt;schema elementFormDefault = "qualified" xmlns = "http://www.w3.org/2001/XMLSchema" xmlns:xs = "http://www.w3.org/2001/XMLSchema" xmlns:tns = "urn:cheeso.examples.2009.05.listofbooks" targetNamespace = "urn:cheeso.examples.2009.05.listofbooks" &gt; &lt;element name="Shelf" nillable="true" type="tns:BookShelf" /&gt; &lt;complexType name="BookShelf"&gt; &lt;sequence&gt; &lt;element minOccurs="0" maxOccurs="1" name="Store" type="tns:ArrayOfChoice1" /&gt; &lt;/sequence&gt; &lt;/complexType&gt; &lt;complexType name="ArrayOfChoice1"&gt; &lt;choice minOccurs="0" maxOccurs="unbounded"&gt; &lt;element minOccurs="1" maxOccurs="1" name="newBook" nillable="true" type="xs:string" /&gt; &lt;element minOccurs="1" maxOccurs="1" name="oldBook" nillable="true" type="xs:string" /&gt; &lt;/choice&gt; &lt;/complexType&gt; &lt;/schema&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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