I have the following XML snippet
<restriction>
<name>notempty</name>
<field>title</field>
</restriction>
which is validated by this XSD
<xs:element name="restriction" maxOccurs="unbounded">
<xs:complexType>
<xs:all>
<xs:element name="name" type="xs:string" minOccurs="1" />
<xs:element name="field" type="xs:string" />
</xs:all>
</xs:complexType>
</xs:element>
I need to change the XSD so it will also validate the following:
<restriction>
<name>notempty</name>
<fields>
<field>title</field>
<field>info</field>
</fields>
</restriction>
Apparently xs:choice is used for this kind of thing, but I'm not sure how to incorporate it. Any ideas?