Subject: Making a copy of a Node
Hello,
I want to make a copy of a Presence stanza that has been received on my server,
if i do this:
Presence presence2 = presence;
It reference copies presence to presence2 and any changes made to either presence or presence2 change both objects.
Is there a way to actually make a complete copy of presence into presence2 so that it is separate from presence?
So that changes to one doesn't effect the other?
I want to make a copy of a Presence stanza that has been received on my server,
if i do this:
Presence presence2 = presence;
It reference copies presence to presence2 and any changes made to either presence or presence2 change both objects.
Is there a way to actually make a complete copy of presence into presence2 so that it is separate from presence?
So that changes to one doesn't effect the other?
akchase47
Show profile
Link to this post
