Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save brokenpylons/dcd4da6d3660b53ec2be7acd6572dd1b to your computer and use it in GitHub Desktop.
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="binary">
<xsd:complexType>
<xsd:group ref="Binary" />
</xsd:complexType>
</xsd:element>
<xsd:group name="Binary">
<xsd:choice>
<xsd:element name="node" type="Node" />
<xsd:element name="leaf">
<xsd:complexType />
</xsd:element>
</xsd:choice>
</xsd:group>
<xsd:complexType name="Node">
<xsd:sequence>
<xsd:group ref="Binary" />
<xsd:element name="value" type="xsd:integer" />
<xsd:group ref="Binary" />
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment