blob: 2b357e6b17fe84cb42b9ddabcf4b8be44e0b529b (
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
32
33
34
35
36
37
|
<?xml version="1.0"?>
<!--
file : examples/cxx/tree/streaming/records.xsd
author : Boris Kolpackov <boris@codesynthesis.com>
copyright : not copyrighted - public domain
-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="record">
<xsd:sequence>
<xsd:element name="data" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<!--
We need this global element so that we get serialization functions
for record. Note that global elements are always qualified. As a
result, if you are using XML namespaces (this example is not), you
will need to make sure the record element inside the records type
is also qualified.
-->
<xsd:element name="record" type="record"/>
<xsd:complexType name="records">
<xsd:sequence>
<xsd:element name="record" type="record" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="records" type="records"/>
</xsd:schema>
|