[XML-SIG] Equivalence test for DOM Nodes?

Lars Marius Garshol larsga at garshol.priv.no
Tue Nov 25 11:26:41 EST 2003

* roman at 248112.vserver.de
| Is there a utility function or something to recursivly compare two DOM
| Nodes for equivalence? 

The trouble with that is that there's no definition of what is
required for two XML fragments to be the same. XML just doesn't have
any notion of identity for elements.

So while there might be such a method you couldn't really trust it to
be The One True Element Comparison Method. Not that such a thing
wouldn't be nice to have... :-(

Lars Marius Garshol, Ontopian         <URL: http://www.ontopia.net >
GSM: +47 98 21 55 50                  <URL: http://www.garshol.priv.no >

More information about the XML-SIG mailing list