summaryrefslogtreecommitdiff
path: root/xsd-tests/cxx/tree/encoding/char/utf-8/test.xsd
blob: d5ee868f42828097e77a7c8a3710a428165b51c0 (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
28
29
30
31
<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:t="test" targetNamespace="test">

  <simpleType name="strenum">

    <annotation>
      <documentation>
        Test enum. Valid values are:
        abc
        a&#x555;c
        &#xAAAA;bc
      </documentation>
    </annotation>

    <restriction base="string">
      <enumeration value="abc"/>
      <enumeration value="a&#x555;c"/>
      <enumeration value="&#xAAAA;bc"/>
    </restriction>
  </simpleType>

  <complexType name="type">
    <sequence>
      <element name="a" type="string" maxOccurs="unbounded"/>
      <element name="b" type="t:strenum" maxOccurs="unbounded"/>
    </sequence>
  </complexType>

  <element name="root" type="t:type"/>

</schema>