From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png

Release status:Extension status beta

ImplementationTemplate:Extension#type Data extraction
DescriptionTemplate:Extension#description Converts markup fragments or whole articles to XML and from XML to other stuff.
Author(s)Template:Extension#username Magnus Manske
Latest versionTemplate:Extension#version r56074 (2009-09-08)
MediaWikiTemplate:Extension#mediawiki 1.6+
LicenseTemplate:Extension#license GPL
Download Subversion [Help]
Browse source code

Translate the Wiki2xml extension if it is available at translatewiki.net

Check usage and version matrix.

What can this extension do?[edit]

Converts markup fragments or whole articles to XML and from XML to other stuff. See here how it works: [1]


Download all the files from [2] and put them into a "wiki2xml" folder inside your "extensions" folder. Add the following line in your LocalSettings.php:

require_once ("extensions/wiki2xml/extension.php");

Lookup the README file for an alternative installation as cgi-bin script and configuration. The extension can then be accessed as "Special:Wiki2XML".

To download the files[edit]

If you have SubVersion installed then use the following command to download the files to directory "php" under the current directory:

 svn export http://svn.wikimedia.org/svnroot/mediawiki/trunk/parsers/graveyard/wiki2xml/php/

See Subversion for more info.


This extension is kind of quaint. For example some templates with tables aren't parsed right. Magnus Manske has put this extension on the back burner due to a lack of time. If you want to contribute to this extension, feel free to do so and join the discussion page.

See also[edit]