Routino SVN Repository Browser

Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino

ViewVC logotype

Contents of /trunk/src/xml/test/test.xsd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 577 - (show annotations) (download)
Wed Dec 29 10:25:14 2010 UTC (14 years, 3 months ago) by amb
File size: 1354 byte(s)
Added the uncontrolled (not auto-generated) files from routino-1.4.

1 <?xml version="1.0" encoding="utf-8" ?>
2
3 <!-- ============================================================
4 An XML Schema Definition for a test XML file
5 ============================================================
6 This file Copyright 2010 Andrew M. Bishop
7
8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU Affero General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12 ============================================================ -->
13
14 <xsd:schema elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
15
16 <!-- The top level -->
17
18 <xsd:element name="test" type="schemaType"/>
19
20 <!-- The first level element -->
21
22 <xsd:complexType name="schemaType">
23 <xsd:sequence>
24 <xsd:element name="level1" type="level1Type"/>
25 </xsd:sequence>
26 <xsd:attribute name="attr1" type="xsd:string"/>
27 <xsd:attribute name="attr2" type="xsd:string"/>
28 </xsd:complexType>
29
30 <!-- The second level element -->
31
32 <xsd:complexType name="level1Type">
33 <xsd:sequence>
34 <xsd:element name="level2" type="level2Type" minOccurs="0"/>
35 </xsd:sequence>
36 <xsd:attribute name="attr1" type="xsd:string"/>
37 </xsd:complexType>
38
39 </xsd:schema>