1 <?xml version=
"1.0" encoding=
"utf-8" ?>
2 <xs:schema elementFormDefault=
"qualified" xmlns:
xs=
"http://www.w3.org/2001/XMLSchema">
3 <xs:element name=
"moodle_database" type=
"databaseType" />
4 <xs:complexType name=
"databaseType">
6 <xs:element maxOccurs=
"unbounded" name=
"table"
9 <xs:attribute name=
"version" type=
"xs:float" use=
"required" />
10 <xs:attribute name=
"release" type=
"xs:string"></xs:attribute>
11 <xs:attribute name=
"timestamp" type=
"xs:dateTime"
13 <xs:attribute name=
"comment" type=
"xs:string" />
15 <xs:complexType name=
"tableType">
17 <xs:element maxOccurs=
"unbounded" name=
"record" type=
"recordType" />
19 <xs:attribute name=
"name" type=
"xs:NCName" use=
"required" />
20 <xs:attribute name=
"schemaHash" type=
"xs:string" use=
"required" />
22 <xs:complexType name=
"recordType">
24 <xs:element maxOccurs=
"unbounded" name=
"field" type=
"fieldType" />
27 <xs:complexType name=
"fieldType">
29 <xs:extension base=
"xs:string">
30 <xs:attribute name=
"name" type=
"xs:string" use=
"required" />
31 <xs:attribute default=
"content" name=
"value" use=
"optional">
33 <xs:restriction base=
"xs:string">
34 <xs:enumeration value=
"content" />
35 <xs:enumeration value=
"null" />