Extension contributed by Guido Schoepp.
This extension can be
downloaded.
ImportContentByXAR Extension
To import content from other Wikis (e.g. MediaWiki) into XWiki you can use .XAR files. This Perl snippet shows a way on how to create a .XAR file by exporting and converting content from a mysql database. You can use the Perl module
HTML::WikiConverter in the
toWikiContent function to convert your content to the XWiki syntax.
Perl Sample Script
The attached sample script creates the documents in the specified space directory and generates the appropriate package.xml file. Beside that it demonstrates how to add tags to a document.
After creating this file structure it has to be packed in a zip file which must be renamed with a .xar extension.