Поделиться через


removeChild Method (Windows Embedded CE 6.0)

1/6/2010

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

Script Syntax

var objXMLDOMNode = oXMLDOMNode.removeChild(childNode);

Remarks

Ee502684.collapse(en-US,WinEmbedded.60).gifScript Parameters

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

Ee502684.collapse(en-US,WinEmbedded.60).gifScript Return Value

Object. Returns the removed child node.

Ee502684.collapse(en-US,WinEmbedded.60).gifC/C++ Syntax

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

Remarks

Ee502684.collapse(en-US,WinEmbedded.60).gifC/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.

Ee502684.collapse(en-US,WinEmbedded.60).gifC/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.

Ee502684.collapse(en-US,WinEmbedded.60).gifRequirements

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

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.

See Also

Reference

XML DOM Methods