1 <?xml version=
"1.0" encoding=
"UTF-8" ?>
3 This is an XML Schema description of the format
4 output by MediaWiki's Special:Export system.
6 The canonical URL to the schema document is:
7 http://www.mediawiki.org/xml/export-0.1.xsd
10 http://www.mediawiki.org/xml/export-0.1/
12 <schema xmlns=
"http://www.w3.org/2001/XMLSchema"
13 xmlns:
mw=
"http://www.mediawiki.org/xml/export-0.1/"
14 targetNamespace=
"http://www.mediawiki.org/xml/export-0.1/"
15 elementFormDefault=
"qualified">
18 <documentation xml:
lang=
"en">
19 MediaWiki's page export format
23 <!-- Need this to reference xml:lang -->
24 <import namespace=
"http://www.w3.org/XML/1998/namespace"
25 schemaLocation=
"http://www.w3.org/2001/xml.xsd"/>
27 <!-- Our root element -->
28 <element name=
"mediawiki" type=
"mw:MediaWikiType"/>
30 <complexType name=
"MediaWikiType">
32 <element name=
"page" type=
"mw:PageType"
33 minOccurs=
"0" maxOccurs=
"unbounded"/>
35 <attribute name=
"version" type=
"string" use=
"required"/>
36 <attribute ref=
"xml:lang" use=
"required"/>
39 <complexType name=
"PageType">
41 <!-- Title in text form. (Using spaces, not underscores; with namespace ) -->
42 <element name=
"title" type=
"string"/>
44 <!-- optional page ID number -->
45 <element name=
"id" type=
"positiveInteger" minOccurs=
"0"/>
47 <!-- comma-separated list of string tokens, if present -->
48 <element name=
"restrictions" type=
"string" minOccurs=
"0"/>
50 <!-- Zero or more sets of revision data -->
51 <element name=
"revision" type=
"mw:RevisionType"
52 minOccurs=
"0" maxOccurs=
"unbounded"/>
56 <complexType name=
"RevisionType">
58 <element name=
"id" type=
"positiveInteger" minOccurs=
"0"/>
59 <element name=
"timestamp" type=
"dateTime"/>
60 <element name=
"contributor" type=
"mw:ContributorType"/>
61 <element name=
"minor" minOccurs=
"0" />
62 <element name=
"comment" type=
"string" minOccurs=
"0"/>
63 <element name=
"text" type=
"string"/>
67 <complexType name=
"ContributorType">
69 <element name=
"username" type=
"string" minOccurs=
"0"/>
70 <element name=
"id" type=
"positiveInteger" minOccurs=
"0" />
72 <element name=
"ip" type=
"string" minOccurs=
"0"/>