removeChild Method (Windows CE 5.0)

Send Feedback

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


Script Syntax

varobjXMLDOMNode = oXMLDOMNode.removeChild(childNode);

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

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

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.
    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.


OS Versions: Windows CE .NET 4.0 and later.
Header: Msxml2.h, Msxml2.idl.
Link Library: Uuid.lib.

General Remarks

This method applies to the following objects and interfaces:

IXMLDOMAttribute, IXMLDOMCDATASection, IXMLDOMCharacterData, IXMLDOMComment, DOMDocument, IXMLDOMDocumentFragment, IXMLDOMDocumentType, IXMLDOMElement, IXMLDOMEntity, IXMLDOMEntityReference, IXMLDOMNode, IXMLDOMNotation, IXMLDOMProcessingInstruction, IXMLDOMText, and IXTLRuntime.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.