File: schema.xsd

package info (click to toggle)
python-xsdata 24.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,936 kB
  • sloc: python: 29,257; xml: 404; makefile: 27; sh: 6
file content (20 lines) | stat: -rw-r--r-- 606 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <xsd:element name="root">
    <xsd:complexType>
      <xsd:choice maxOccurs="unbounded">
        <xsd:element ref="alpha" />
        <xsd:element ref="bravo" />
      </xsd:choice>
    </xsd:complexType>
  </xsd:element>
  <xsd:element name="alpha">
    <xsd:complexType>
      <xsd:attribute name="a" type="xsd:boolean" fixed="true" />
    </xsd:complexType>
  </xsd:element>
  <xsd:element name="bravo">
    <xsd:complexType>
      <xsd:attribute name="b" type="xsd:boolean" fixed="true" />
    </xsd:complexType>
  </xsd:element>
</xsd:schema>