1 <mediawiki xmlns="http://www.mediawiki.org/xml/export-0.10/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.10/ http://www.mediawiki.org/xml/export-0.10.xsd" version="0.10" xml:lang="en">
3 <!-- Optional global configuration info -->
5 <!-- Site name, as set in $wgSitename -->
6 <sitename>DemoWiki</sitename>
8 <!-- Database name, as set in $wgDBname -->
9 <dbname>demowiki</dbname>
11 <!-- Forgot where you got this set? -->
12 <base>http://example.com/wiki/Main_Page</base>
14 <!-- Source software version -->
15 <generator>MediaWiki 1.24</generator>
17 <!-- Title case sensitivity options of the wiki this data came from -->
18 <!-- May be 'first-letter', 'case-sensitive', or 'case-insensitive' -->
19 <case>first-letter</case>
21 <!-- Defined namespace keys on the source wiki. -->
23 <namespace key="-2" case="first-letter">Media</namespace>
24 <namespace key="-1" case="first-letter">Special</namespace>
25 <namespace key="0" case="first-letter" />
26 <namespace key="1" case="first-letter">Talk</namespace>
27 <namespace key="2" case="first-letter">User</namespace>
28 <namespace key="3" case="first-letter">User talk</namespace>
29 <namespace key="4" case="first-letter">DemoWiki</namespace>
30 <namespace key="5" case="first-letter">DemoWIki talk</namespace>
31 <namespace key="6" case="first-letter">File</namespace>
32 <namespace key="7" case="first-letter">File talk</namespace>
33 <namespace key="8" case="first-letter">MediaWiki</namespace>
34 <namespace key="9" case="first-letter">MediaWiki talk</namespace>
35 <namespace key="10" case="first-letter">Template</namespace>
36 <namespace key="11" case="first-letter">Template talk</namespace>
37 <namespace key="12" case="first-letter">Help</namespace>
38 <namespace key="13" case="first-letter">Help talk</namespace>
39 <namespace key="14" case="first-letter">Category</namespace>
40 <namespace key="15" case="first-letter">Category talk</namespace>
44 <!-- The rest of the data will be a series of page records -->
46 <!-- Titles are listed here in text form, with namespace prefix -->
47 <!-- if any, and spaces rather than the underscores used in URLs. -->
48 <title>Page title</title>
50 <!-- Namespace in canonical form -->
53 <!-- The page's immutable page_id number in the source database. -->
54 <!-- Page ID numbers are kept across page moves, but may change -->
55 <!-- if a page is deleted and recreated. -->
58 <!-- Tag whether this article is a redirect and its target -->
59 <!-- This corresponds to the page_is_redirect in the page table -->
60 <redirect title="Target" />
62 <!-- If restricted, the ACL is listed here raw. -->
63 <restrictions>edit=sysop:move=sysop</restrictions>
65 <!-- With a series of revision records... -->
67 <!-- Remember this is XML; if you must use a regex-based extractor -->
68 <!-- in place of a standard XML parser, be very careful. -->
69 <!-- * Don't forget to decode character entities! -->
70 <!-- * If using a 'loose' XML parser, ensure that whitespace is -->
71 <!-- preserved in the <text> elements. -->
73 <!-- Unique revision ID number (rev_id) in the source database. -->
74 <!-- This number uniquely identifies the revision on that wiki. -->
76 <!-- revision id of the parent revision -->
77 <parentid>99</parentid>
78 <timestamp>2001-01-15T13:15:00Z</timestamp>
80 <username>Foobar</username>
84 <comment>I have just one thing to say!</comment>
85 <model>wikitext</model>
86 <format>text/x-wiki</format>
87 <text xml:space="preserve" bytes="25">A bunch of [[text]] here.</text>
88 <sha1>5x0ux8iwjrbmfzgv6pkketxgkcnpr7h</sha1>
93 <timestamp>2001-01-15T13:10:27Z</timestamp>
97 <comment>new!</comment>
98 <model>wikitext</model>
99 <format>text/x-wiki</format>
100 <text xml:space="preserve" bytes="24">An earlier [[revision]].</text>
101 <sha1>etaxt3shcge6igz1biwy3d4um2pnle4</sha1>
106 <title>Talk:Page title</title>
111 <timestamp>2001-01-15T14:03:00Z</timestamp>
112 <contributor><ip>10.0.0.2</ip></contributor>
113 <comment>hey</comment>
114 <model>wikitext</model>
115 <format>text/x-wiki</format>
116 <text xml:space="preserve" bytes="47">WHYD YOU LOCK PAGE??!!! i was editing that jerk</text>
117 <sha1>ml80vmyjlixdstnywwihx003exfzq9j</sha1>
122 <title>File:Some image.jpg</title>
127 <timestamp>2001-01-15T20:34:12Z</timestamp>
128 <contributor><username>Foobar</username><id>42</id></contributor>
129 <comment>My awesomeest image!</comment>
130 <model>wikitext</model>
131 <format>text/x-wiki</format>
132 <text xml:space="preserve" bytes="52">This is an awesome little imgae. I lurves it. {{PD}}</text>
133 <sha1>mehom37npwkpzhaiwu3wyr0egalumki</sha1>
136 <timestamp>2001-01-15T20:34:12Z</timestamp>
137 <contributor><username>Foobar</username><id>42</id></contributor>
138 <comment>My awesomeest image!</comment>
139 <filename>Some_image.jpg</filename>
140 <src>http://upload.wikimedia.org/commons/2/22/Some_image.jpg</src>
145 <!-- or a series of logitem records, but normaly page and logitem never exist both in one file -->
148 <timestamp>2008-10-23T03:20:32Z</timestamp>
150 <username>Wikimedian</username>
153 <comment>content was: 'I think this was a silly edit'</comment>
155 <action>delete</action>
156 <logtitle>Silly page name</logtitle>
157 <params xml:space="preserve" />