Import Content By XAR Extension

Last modified by Vincent Massol on 2021/03/17 21:42

cogCreate a XAR file by exporting and converting content from a mysql database
TypeOther
Category
Developed by

xwiki:XWiki.gus27

Rating
0 Votes
LicenseGNU Lesser General Public License 2.1

Description

To import content from other Wikis (e.g. MediaWiki) into XWiki you can use .XAR files.  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.

Get Connected