[Hippo-cms7-user] Removing content using delta XMLs

Woonsan Ko w.ko at onehippo.com
Tue Jun 26 22:32:00 CEST 2012

On 6/26/12 4:17 PM, Bart van der Schans wrote:
> We need to facilitate somehow the deletion of a node in the content
> bootstrap mechanism. The only way you can safely do this when
> specifying explicitly and uniquely  which same name sibling has to be
> deleted. For example "delete /nodeA/sns with property color=blue" or
> "delete /nodeA/sns with subnode nodeB which has property shape=square".
> I'm not sure if it is possible to do these kind of things with the delta
> xml format. But maybe somebody else has more knowledge in this area and
> can give some insight on how to go forward with the "delete issue".

How about supporting xpath query with a new *hippo:contentdeletebyquery*?
Then a xpath or sql query statement can be put instead of a path.



w.ko at onehippo.com     www.onehippo.com
Boston - 1 Broadway, Cambridge, MA 02142
Amsterdam - Oosteinde 11, 1017 WT Amsterdam
US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466

More information about the Hippo-cms7-user mailing list