Click to return to the XML (Extensible Markup Language) home page    
IXMLDOMNode::previousSibl...     IXMLDOMNode::replaceChild...     IXMLDOMNode Interface    
Web Workshop  |  XML (Extensible Markup Language)

IXMLDOMNode::removeChild Method


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.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.