XmlNode replaceChild(XmlNode newChild, XmlNode oldChild)
Replaces oldChild with newChild.
oldChild
newChild
XmlException