[Hippo-cms7-user BETA] Milestone 7 Hippo ECM

Bart van der Schans schans at onehippo.com
Fri Oct 31 11:16:02 CET 2008


On 31-10-2008 11:08, Camiel Dobbelaar wrote:
> It worked!  But we had to edit ALL the exported XML files not just the
> namespace export (hst:configuration, content, live, preview, template).
>
> Because the content XML was 22MB we used the following perl script,
> maybe it helps someone else too:
>
>
> #!/usr/bin/perl -pi.bak
>
> s{<sv:property sv:name="hippo:related___pathreference"
> sv:type="String"/>}{}g;
> s{<sv:property sv:name="hippo:related___pathreference" sv:type="String"
> />}{}g;
>
> s{<sv:property sv:name="hippo:related___pathreference"
> sv:type="String">.*?</sv:property>}{}g;
>

Great! Thanks for sharing this little perl regex magic ;)

Regards,
Bart


-- 
Hippo B.V.  -  Amsterdam
Oosteinde 11, 1017 WT, Amsterdam, +31(0)20-5224466

Hippo USA Inc.  -  San Francisco
101 H Street, Suite Q, Petaluma CA, 94952-3329, +1 (707) 773-4646
-----------------------------------------------------------------
http://www.onehippo.com   -  info at onehippo.com
-----------------------------------------------------------------



More information about the Hippo-cms7-user mailing list