One thing that's throwing me off is that this is an *XML* node, rather than the tree nodes with we we are often dealing. Could we either rename "node" or "replace" or add a comment about that?