You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Jason E. Stewart" <ja...@openinformatics.com> on 2002/11/13 19:33:21 UTC

operator= for DOMNode

Hey All,

The old java-like DOM had operator= to test whether two nodes where
equivalent, and IDOM didn't need it because you could do a straight
pointer comparison. 

But that straight pointer comparison doesn't seem to work anymore, at
least not from the Xerces-Perl API. When I use getElementsByTagName()
multiple times, I get back different pointers every time, even though
the queries are the same...

I looked at the programming documentation and didn't see anything
obvious I was missing. Any suggestions?

Thanks,
jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: operator= for DOMNode

Posted by "Jason E. Stewart" <ja...@openinformatics.com>.
"Tinny Ng" <tn...@ca.ibm.com> writes:

> You can use the new DOM L3 function DOMNode::isEqualNode and
> DOMNode::isSameNode

Excellent!

Thanks Tinny. Can we add that the DOM Programming guide?

jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: operator= for DOMNode

Posted by Tinny Ng <tn...@ca.ibm.com>.
Jason,

You can use the new DOM L3 function DOMNode::isEqualNode and
DOMNode::isSameNode

Tinny
----- Original Message -----
From: "Jason E. Stewart" <ja...@openinformatics.com>
To: <xe...@xml.apache.org>
Sent: Wednesday, November 13, 2002 1:33 PM
Subject: operator= for DOMNode


> Hey All,
>
> The old java-like DOM had operator= to test whether two nodes where
> equivalent, and IDOM didn't need it because you could do a straight
> pointer comparison.
>
> But that straight pointer comparison doesn't seem to work anymore, at
> least not from the Xerces-Perl API. When I use getElementsByTagName()
> multiple times, I get back different pointers every time, even though
> the queries are the same...
>
> I looked at the programming documentation and didn't see anything
> obvious I was missing. Any suggestions?
>
> Thanks,
> jas.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org