Routines (alphabetical) > Object Classes > File Format Object Classes > IDLffXMLDOMNode::RemoveChild

# IDLffXMLDOMNode::RemoveChild

Syntax | Return Value | Arguments | Keywords | Version History

The IDLffXMLDOMNode::RemoveChild function method removes an existing child node from the calling node’s child list.

The ownership of the IDL object to which the OldChild object reference refers is transferred from this calling object to the document object. The old child node has no parent after it is replaced. The document object becomes the new owner of the old child node, which is destroyed when the document object is destroyed.

## Syntax

Result = Obj->[IDLffXMLDOMNode::]RemoveChild( OldChild )

## Return Value

Returns an object reference to the old child node.

## Arguments

### OldChild

An object reference to an instance of an IDLffXMLDOMNode subclass that refers to the node that is being removed. The old child node must be a child of the calling node.

## Keywords

None

## Version History

6.1 | Introduced