RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IXMLNodeList.Delete Method (DOMString)

Removes a specified node from the list.

Pascal
function Delete(const Index: Integer): Integer; overload;
function Delete(const Name: DOMString): Integer; overload;
function Delete(const Name: DOMString; const NamespaceURI: DOMString): Integer; overload;
C++
__fastcall int Delete(const int Index);
__fastcall int Delete(const DOMString Name);
__fastcall int Delete(const DOMString Name, const DOMString NamespaceURI);

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 necessary). 

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. 

 

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