[XML-SIG] DOM Nodes: Identity test

Carsten Oberscheid co@daisybytes.su.uunet.de
Tue, 23 Mar 1999 19:26:38 +0100

What is the "official" way to check if a two DOM Node objects are the same?

The PyDOM implementation, e.g. in the Element.get_parentNode() method, always 
returns a "fresh" Node object encapsulating the real data in a _nodeData object 
(right?), so when I do get_parentNode() twice on the same node, I get two 
different Node objects. Am I supposed to compare the _node members?

I don't think I'm talking about an ID attribute problem here.


+------------------------------------------------------- daisy bytes! --------+
 Carsten Oberscheid
 co@daisybytes.su.uunet.de                        digital document processing
 http://www.pweb.de/daisybytes.su                     electronic publishing