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.
Version 5.1 last modified by ThomasMortagne on 10/12/2007 at 19:14
Document data
Attachments:
No attachments for this document
Comments: 0