The node replaced.
If the newChild is already in the tree, it is first removed.
If the newChild was created from another document, you can use XmlDocument.ImportNode(XmlNode, bool) to import the node to the current document. The imported node can then be passed to the ReplaceChild method.