Removes the specified child node from the list of children and returns it.
Visual Basic Syntax
Set objXMLDOMNode = oXMLDOMNode.removeChild(childNode)
C/C++ Syntax
HRESULT removeChild( IXMLDOMNode *oldChild, IXMLDOMNode **outOldChild);
Parameters
- oldChild
- [in] Child node to be removed from the list of children of this node.
- outOldChild
- [out] Removed child node. If null, no object is created.
C/C++ Return Values
- S_OK
- Value returned if successful.
- E_INVALIDARG
- Value returned if oldChild is not a child of this node, when the specified oldChild is read-only and cannot be removed, or when oldChild is null.
- E_FAIL
- Value returned if an error occurs.