Re: Recursive replacement

  No. Imagine what operations you get:
  a) replace inner-a with <new-node/>
  b) replace outer-a with <new-node><b><a/></b></new-node>
  The important thing: this ------------^ <a/> is a completely different
  node than the original inner-a, so the order doesn't make any
  difference.

Yes as I just replied to Leonid, they do have new identity, the problem
is if you reverse the order of the replacements:

a) replace outer-a with <new-node><b><a/></b></new-node>

now _because_ that <a/> has new identity when you come to the second
pending operation 

b) replace inner-a with <new-node/>

you are stuck because there is no node with the identity inner-a.
So is this an error, or do you just skip this operation?

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Received on Monday, 30 January 2006 16:45:38 UTC