compare MSXML objects (nodes)

compare MSXML objects (nodes)

am 28.02.2007 08:49:39 von vsimionescu

Hello

Is there any way to compare 2 nodes of the same DOM tree with Perl and
Win32::OLE so I can see that they are in fact the same node ? I use
MSXML 4. That's what I do:

....

my $root = $dom->DocumentElement ();
my $r = $root->FirstChild()->ParentNode ();
# $r refers obviously to the same node as $root

if ($r eq $root)
{
...
}

I'd expect the test to be true but it isn't. I've searched the Web but
couldn't find anything.

Regards
V. Simionescu