For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > February 2007 > compare MSXML objects (nodes)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author compare MSXML objects (nodes)
vsimionescu@softwin.ro

2007-02-28, 3:58 am

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

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com