1 <mediawiki xmlns="http://www.mediawiki.org/xml/export-0.4/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.4/ http://www.mediawiki.org/xml/export-0.4.xsd" version="0.4" xml:lang="en">
3 <!-- Optional global configuration info -->
5 <!-- Site name, as set in $wgSitename -->
6 <sitename>DemoWiki</sitename>
8 <!-- Forgot where you got this set? -->
9 <base>http://example.com/wiki/Main_Page</base>
11 <!-- Source software version -->
12 <generator>MediaWiki 1.5.0</generator>
14 <!-- Title case sensitivity options of the wiki this data came from -->
15 <!-- May be 'first-letter', 'case-sensitive', or 'case-insensitive' -->
16 <case>first-letter</case>
18 <!-- Defined namespace keys on the source wiki. -->
19 <!-- Titles can be substring-split to obtain the symbolic numeric key -->
21 <namespace key="-2">Media</namespace>
22 <namespace key="-1">Special</namespace>
23 <namespace key="0"></namespace>
24 <namespace key="1">Talk</namespace>
25 <namespace key="2">User</namespace>
26 <namespace key="3">User talk</namespace>
27 <namespace key="4">DemoWiki</namespace>
28 <namespace key="5">DemoWIki talk</namespace>
29 <namespace key="6">Image</namespace>
30 <namespace key="7">Image talk</namespace>
31 <namespace key="8">MediaWiki</namespace>
32 <namespace key="9">MediaWiki talk</namespace>
33 <namespace key="10">Template</namespace>
34 <namespace key="11">Template talk</namespace>
35 <namespace key="12">Help</namespace>
36 <namespace key="13">Help talk</namespace>
37 <namespace key="14">Category</namespace>
38 <namespace key="15">Category talk</namespace>
42 <!-- The rest of the data will be a series of page records -->
44 <!-- Titles are listed here in text form, with namespace prefix -->
45 <!-- if any, and spaces rather than the underscores used in URLs. -->
46 <title>Page title</title>
48 <!-- The page's immutable page_id number in the source database. -->
49 <!-- Page ID numbers are kept across page moves, but may change -->
50 <!-- if a page is deleted and recreated. -->
53 <!-- Tag wether this article is a redirect -->
54 <!-- This corresponds to the page_is_redirect in the page table -->
57 <!-- If restricted, the ACL is listed here raw. -->
58 <restrictions>edit=sysop:move=sysop</restrictions>
60 <!-- With a series of revision records... -->
62 <!-- Remember this is XML; if you must use a regex-based extractor -->
63 <!-- in place of a standard XML parser, be very careful. -->
64 <!-- * Don't forget to decode character entities! -->
65 <!-- * If using a 'loose' XML parser, ensure that whitespace is -->
66 <!-- preserved in the <text> elements. -->
68 <!-- Unique revision ID number (rev_id) in the source database. -->
69 <!-- This number uniquely identifies the revision on that wiki. -->
72 <timestamp>2001-01-15T13:15:00Z</timestamp>
73 <contributor><username>Foobar</username><id>42</id></contributor>
75 <comment>I have just one thing to say!</comment>
76 <text xml:space="preserve">A bunch of [[text]] here.</text>
80 <timestamp>2001-01-15T13:10:27Z</timestamp>
81 <contributor><ip>10.0.0.2</ip></contributor>
82 <comment>new!</comment>
83 <text xml:space="preserve">An earlier [[revision]].</text>
88 <title>Talk:Page title</title>
92 <timestamp>2001-01-15T14:03:00Z</timestamp>
93 <contributor><ip>10.0.0.2</ip></contributor>
94 <comment>hey</comment>
95 <text xml:space="preserve">WHYD YOU LOCK PAGE??!!! i was editing that jerk</text>
100 <title>Image:Some image.jpg</title>
104 <timestamp>2001-01-15T20:34:12Z</timestamp>
105 <contributor><username>Foobar</username><id>42</id></contributor>
106 <comment>My awesomeest image!</comment>
107 <text xml:space="preserve">This is an awesome little imgae. I lurves it. {{PD}}</text>
110 <timestamp>2001-01-15T20:34:12Z</timestamp>
111 <contributor><username>Foobar</username><id>42</id></contributor>
112 <comment>My awesomeest image!</comment>
113 <filename>Some_image.jpg</filename>
114 <src>http://upload.wikimedia.org/commons/2/22/Some_image.jpg</src>
121 <timestamp>2008-10-23T03:20:32Z</timestamp>
123 <username>Wikimedian</username>
126 <comment>content was: 'I think this was a silly edit'</comment>
128 <action>delete</action>
129 <logtitle>Silly page name</logtitle>
130 <params xml:space="preserve" />