Xml.XMLDoc.TXMLNodeList.Delete

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Delete(const Index: Integer): Integer; overload;
function Delete(const Name: DOMString): Integer; overload;
function Delete(const Name, NamespaceURI: DOMString): Integer; overload;

C++

int __fastcall Delete(const int Index)/* overload */;
int __fastcall Delete(const System::UnicodeString Name)/* overload */;
int __fastcall Delete(const System::UnicodeString Name, const System::UnicodeString NamespaceURI)/* overload */;

Properties

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

Description

Removes a specified node from the list.

Delete removes the node specified by the Index or Name parameter.

Name identifies the node to remove from the list. This is the local name of the node to remove.

NamespaceURI identifies the namespace to use when interpreting Name. If the node is identified by Name, but no NamespaceURI parameter is provided, Delete uses DefaultNamespaceURI.

Index identifies the node to remove by index rather than name. Index ranges from 0 to one less than the value of the Count property.

Delete returns the index of the node that was removed. If there was no node that matched the value of Index or Name, Delete returns –1.

See Also