[XML-SIG] syncing DOM trees

Alexandre Fayolle Alexandre.Fayolle at logilab.fr
Fri Jul 18 09:58:48 EDT 2003


On Fri, Jul 18, 2003 at 12:16:12AM +0200, Felix Breuer wrote:
 
> Scenario 3) I have a single DOM tree which I can easily reproduce
> (because I have the XML file in serialized form). Now this DOM tree is
> changed and I want to log these changes. At some point I want to
> recreate the DOM tree from the file and apply a part of the logged
> mutations to it. (So as to implement an "Undo" function.) How to do
> this? It would be optimal of course to literally undo the last changes
> applied to the modified tree - is there a canonical mapping of DOM
> methods to their inverse? 

xmldiff (http://www.logilab.org/xmldiff/) could be useful for this
scenario.

-- 
Alexandre Fayolle
LOGILAB, Paris (France).
http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org
Développement logiciel avancé - Intelligence Artificielle - Formations



More information about the XML-SIG mailing list