Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

Removes the specified child node from the list of children and returns it.

Script Syntax

Copy Code
var 
objXMLDOMNode = oXMLDOMNode.removeChild(
childNode);

Remarks

Script Parameters

childNode

Object. Child node to be removed from the list of children of this node.

Script Return Value

Object. Returns the removed child node.

C/C++ Syntax

Copy Code
HRESULT removeChild(
  IXMLDOMNode* 
childNode,
  IXMLDOMNode** 
outOldChild
);

Remarks

C/C++ Parameters

childNode

[in] Child node to be removed from the list of children of this node.

outOldChild

[out, retval] Removed child node. If Null, no object is created.

C/C++ Return Values

S_OK

Value returned if successful.

E_INVALIDARG

Value returned if oldChildis not a child of this node, when the specified oldChildis read-only and cannot be removed, or when oldChildis Null.

E_FAIL

Value returned if an error occurs.

Requirements

Header msxml2.h, msxml2.idl
Library uuid.lib
Windows Embedded CE Windows CE .NET 4.0 and later

General Remarks