Glad you have a solution, but doesn't this really mean you have an attribute 
missing from  your schema, that would enable you to differentiate between 
different XML instances?

If you had some kind of mixed model with server processing and multiple 
client interaction, wouldn't you still have a problem because the address 
would be meaningless outside of the context of a single client?

Paul
----- Original Message ----- 
From: "helihobby" <[EMAIL PROTECTED]>
To: <flexcoders@yahoogroups.com>
Sent: Tuesday, November 20, 2007 11:21 PM
Subject: [flexcoders] Re: How can I compare two XMLs by reference and not by 
value ?


>U R THE MAN Gordon.
>
> You saved me LOTS of work ...
>
> Regards,
>
> Sean - HeliHobby.com
>
> --- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>>
>> Try using === instead of ==.
>>
>> - Gordon
>>
>> ________________________________
>>
>> From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
>> Behalf Of helihobby
>> Sent: Tuesday, November 20, 2007 1:10 PM
>> To: flexcoders@yahoogroups.com
>> Subject: [flexcoders] How can I compare two XMLs by reference and
> not by
>> value ?
>>
>>
>>
>> Hello All,
>>
>> I have the following code:
>>
>> public function timelineDurationOfAction(itemInTree:Object):int
>> {
>>
>> for each ( var xmlValue:XML in _actionProviderTree)
>> {
>> if ( xmlValue == itemInTree) trace("Found");
>> }
>>
>> }
>>
>> and I need to be able to compare the xmlValue and itemInTree.
>>
>> However, I need to compare it by refrenece ( i.e.: memory address )
>> and not by content as I have many XML's which repeat in value and
>> look the same but are not by actual memory address ...
>>
>> I need to trace the "Found" only when the two XML objects are the
>> same by memory location.
>>
>> Is it possible ?
>>
>> Thank you for all the help,
>>
>> Sean - HeliHobby.com
>>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
> 

Reply via email to