Skip to content

Instantly share code, notes, and snippets.

@uncoded-ro
Created June 13, 2022 17:08
Show Gist options
  • Save uncoded-ro/09570b8acd47ba83555ffab1b0e11d6a to your computer and use it in GitHub Desktop.
Save uncoded-ro/09570b8acd47ba83555ffab1b0e11d6a to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<!-- studenti3.xsd -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="studenti" type="studenti"/>
<xsd:complexType name="studenti">
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="student" type="student"/>
</xsd:choice>
</xsd:complexType>
<xsd:complexType name="student">
<xsd:sequence>
<xsd:element name="nume">
<xsd:complexType mixed="true">
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="prenume" type="xsd:string"/>
</xsd:choice>
</xsd:complexType>
</xsd:element>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="medie" type="xsd:decimal"/>
<xsd:element name="grupa" type="xsd:decimal"/>
</xsd:choice>
</xsd:sequence>
<xsd:attribute name="matricol" type="xsd:ID" use="required"/>
</xsd:complexType>
</xsd:schema>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment