RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNodeCollection.Remove Method

Removes one of the repeating child nodes from this node.

Pascal
function Remove(const AItem: IXMLNode): Integer;
C++
__fastcall int Remove(const IXMLNode AItem);

Use the TXMLNodeCollection object's IXMLNodeCollection interface to call the protected Remove method. Remove removes a specified child node from this node. 

AItem is the interface of the child to remove. It must represent on of the repeating child nodes. 

Remove deletes the child node from both the List property and from the ChildNodes property. It returns the index that the child node held in the List property. 

To remove a child that is not one of the repeating child nodes, use the ChildNodes property instead. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!