Skip to content

Instantly share code, notes, and snippets.

@brokenpylons
Created March 22, 2023 14:26
Show Gist options
  • Select an option

  • Save brokenpylons/903547afb556157160592a0ad31de845 to your computer and use it in GitHub Desktop.

Select an option

Save brokenpylons/903547afb556157160592a0ad31de845 to your computer and use it in GitHub Desktop.
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="list">
<xsd:complexType>
<xsd:group ref="List" />
</xsd:complexType>
</xsd:element>
<xsd:group name="List">
<xsd:choice>
<xsd:element name="cell" type="Cell" />
<xsd:element name="end">
<xsd:complexType />
</xsd:element>
</xsd:choice>
</xsd:group>
<xsd:complexType name="Cell">
<xsd:sequence>
<xsd:element name="value" type="xsd:integer" />
<xsd:group ref="List" />
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment