Hi, Would this work with objects? Say we have an addressbook (e.g. in XML format). If I create a class ContactPerson in XWiki, can I populate XWiki with instances of contact objects (1 per page)? Thanks, Marc
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Guillaume Lerouge Sent: February 14, 2009 12:56 PM To: XWiki Users Subject: Re: [xwiki-users] Migrating articles into xwiki
Hi,
XWiki Pages are stored as XML files. You can look at the XML representation of a standard XWiki pages (export as XAR, rename to ZIP, unzip, look inside the folder). Then try to find which XWL fields from your original XML format could be converted into XWiki document fields (especially web, name, title, creation date and content).
Once you've decided which mapping to use, write and launch your XSLT script. Then you'll have a bunch of XWiki pages as XML. Look at the output of a XWiki XAR export to see what the description file looks like and write one with the name of your pages inside.
Put everything into a folder, zip it, rename it to .xar, try importing it. If the import fails, try splitting it into a number of smaller XARs.
Hope this helps,
Guillaume
On Sat, Feb 14, 2009 at 12:10 PM, Gerritjan Koekkoek < [email protected]> wrote:
Hi.
We have a repository of articles (our Old CMS) we would like to import into xwiki automatically. These Articles are in a propietary XML format, one XML file per article.
What would be the best approach? We have ability to restructure/transform xml into another xml by means of xslt.
Which approaches could we research?
Gerritjan _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users