File: issue_041.xsd

package info (click to toggle)
python-xmlschema 4.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,208 kB
  • sloc: python: 39,174; xml: 1,282; makefile: 36
file content (19 lines) | stat: -rw-r--r-- 708 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:element name="Detail" type="my_detail"/>
    <xs:complexType name="my_detail">
      <xs:sequence>
        <xs:element name="Name" type="xs:string"></xs:element>
        <xs:element name="Value">
          <xs:complexType>
            <xs:choice>
              <xs:element name="Boolean" type="xs:boolean" />
              <xs:element name="Integer" type="xs:int"     />
              <xs:element name="Decimal" type="xs:decimal" />
              <xs:element name="Code"    type="xs:string"  />
            </xs:choice>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
</xs:schema>