Is a "replace node..." statement anytime equal to an atomic removal of a node (with it's subtree) and an insertion of the content to replace with at the same place?
That is considering we have a DOM-Implementation, in order to support replace-operations is it save to assume the above statement or is something like this also possible (in case of replacing the "foo"-element with a "blabla"-element):
original tree:
- root
- foo
- bar
- baz
- foo
modified tree:
- root
- blabla
- bar
- baz
- blabla