Xml.XMLDoc.TXMLNodeCollection.Remove

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Remove(const AItem: IXMLNode): Integer;

C++

int __fastcall Remove(const Xml::Xmlintf::_di_IXMLNode AItem);

Properties

Type Visibility Source Unit Parent
function protected
Xml.XMLDoc.pas
Xml.XMLDoc.hpp
Xml.XMLDoc TXMLNodeCollection

Description

Removes one of the repeating child nodes from this node.

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.

See Also