XmlParentNode.replaceChild

XmlNode replaceChild(XmlNode newChild, XmlNode oldChild) @safe

Replaces oldChild with newChild.

Returns

The replaced oldChild.

Throws

XmlException if oldChild is not a child of this node.