[CPS-devel] How to extract a CPS database to a set of XML files ?

Lennart Regebro regebro at gmail.com
Fri Oct 26 14:13:56 CEST 2007


On 10/26/07, hlr fa <hlr_fa at yahoo.fr> wrote:
> We're currently using CPS 3.3.5 and we want to extract its contents into XML
> files.
> As a CPS beginner, I'm wondering if some API does exist for extracting the
> hole content of my site in order to create a set of XML files. These files
> should conserve also the initial structure.

It depends. The trick is to know what object-specific data that should
be exported. For content that is based on CPSShemas there is an API,
you can get the schema of the content and get a list of the data that
should be exported. For other objects you simply have to treat each
content type separately.

-- 
Lennart Regebro: Zope, CPS and Plone consulting.
http://www.colliberty.com/
+33 661 58 14 64



This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.