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/export-0.1.xsd
9 <schema xmlns="http://www.w3.org/2001/XMLSchema"
10 xmlns:mw="http://www.mediawiki.org/xml/export-0.1/"
11 targetNamespace="http://www.mediawiki.org/xml/export-0.1/"
12 elementFormDefault="qualified">
15 <documentation xml:lang="en">
16 MediaWiki's page export format
20 <!-- Need this to reference xml:lang -->
21 <import namespace="http://www.w3.org/XML/1998/namespace"
22 schemaLocation="http://www.w3.org/2001/xml.xsd"/>
24 <!-- Our root element -->
25 <element name="mediawiki" type="mw:MediaWikiType"/>
27 <complexType name="MediaWikiType">
29 <element name="page" type="mw:PageType"
30 minOccurs="0" maxOccurs="unbounded"/>
32 <attribute name="version" type="string" use="required"/>
33 <attribute ref="xml:lang" use="required"/>
36 <complexType name="PageType">
38 <!-- Title in text form. (Using spaces, not underscores; with namespace ) -->
39 <element name="title" type="string"/>
41 <!-- optional page ID number -->
42 <element name="id" type="positiveInteger" minOccurs="0"/>
44 <!-- comma-separated list of string tokens, if present -->
45 <element name="restrictions" type="string" minOccurs="0"/>
47 <!-- Zero or more sets of revision data -->
48 <element name="revision" type="mw:RevisionType"
49 minOccurs="0" maxOccurs="unbounded"/>
53 <complexType name="RevisionType">
55 <element name="id" type="positiveInteger" minOccurs="0"/>
56 <element name="timestamp" type="dateTime"/>
57 <element name="contributor" type="mw:ContributorType"/>
58 <element name="minor" minOccurs="0" />
59 <element name="comment" type="string" minOccurs="0"/>
60 <element name="text" type="string"/>
64 <complexType name="ContributorType">
66 <element name="username" type="string" minOccurs="0"/>
67 <element name="id" type="positiveInteger" minOccurs="0" />
69 <element name="ip" type="string" minOccurs="0"/>