ReplaceChild()

XmlNode::ReplaceChild(SharedPtr<XmlNode>, SharedPtr<XmlNode>) method

Replaces the child node oldChild with newChild node.

virtual SharedPtr<XmlNode> System::Xml::XmlNode::ReplaceChild(SharedPtr<XmlNode> newChild, SharedPtr<XmlNode> oldChild)

Arguments

ParameterTypeDescription
newChildSharedPtr<XmlNode>The new node to put in the child list.
oldChildSharedPtr<XmlNode>The node being replaced in the list.

Return Value

The node replaced.

See Also