summaryrefslogtreecommitdiff
path: root/xsd/tests/cxx/parser/recursive/test.xsd
blob: 33e1d2d586fb07b49f2d46ecc557ebc753b6e822 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xs:complexType name="sub_type">
    <xs:sequence>
      <xs:element name="sub" type="sub_type" minOccurs="0"/>
      <xs:element name="indir" type="indir_type" minOccurs="0"/>
      <xs:element name="sub2" type="sub_type" minOccurs="0"/>
    </xs:sequence>
    <xs:attribute name="name" type="xs:string" />
  </xs:complexType>

  <xs:complexType name="indir_type">
    <xs:sequence>
      <xs:element name="sub" type="sub_type" minOccurs="0"/>
    </xs:sequence>
    <xs:attribute name="name" type="xs:string" />
  </xs:complexType>

  <xs:complexType name="test_type">
    <xs:sequence>
      <xs:element name="sub" type="sub_type" />
    </xs:sequence>
    <xs:attribute name="name" type="xs:string" />
  </xs:complexType>

  <xs:element name="test" type="test_type" />
</xs:schema>