Extension talk:Wiki2xml

Installation
I find this extension very useful, especially the ODT export. I use it via the URL : http://tools.wikimedia.de/~magnus/wiki2xml/w2x.php but it is currently out of service. I tried to install it on my Linux MediaWiki installation, but I didn't managed to activate the ODT export, even after two hours spent to analyze the PHP code... This extension seems to have been made for Windows and doesn't work well with Linux.

Could somebody solve this problem, please ?

Best regards. Peter17 19:53, 6 April 2008 (UTC)

Not for Linux?
In the README file of this extension you can read:

On a Unix/Linux server the following can be used as a starting point:

In the local.php file (which can be copied from sample_local.php) you can set the following:


 * 1) On Windows, set
 * 2) $xmlg['is_windows'] = true ;

So my conclusion would be that it is designed to work on linux.

Syntax error?
In the file "mediawiki_converter.php" (in the extension/wiki2xml/ -directory) on line 45 you find:

$xml .= ' title="' . htmlspecialchars( $title ) '"' ;

When I add a point (".") the extension seems to work. So I changed the line in:

$xml .= ' title="' . htmlspecialchars( $title ) . '"' ;

Hope That Helps