RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IXMLNodeList.GetNode Method

Returns a specified node from the list.

Pascal
function GetNode(const IndexOrName: OleVariant): IXMLNode;
C++
__fastcall IXMLNode GetNode(const OleVariant IndexOrName);

GetNode is the read implementation of the Nodes property. 

IndexOrName identifies the desired node. It can be 

The index of the node, where 0 is the index of the first node, 1 is the index of the second node, and so on. 

The LocalName property of a node in the list. 

If IndexOrName does not identify a node in the list, GetNode tries to create a new node with the name specified by IndexOrName. If it can't create the new node, GetNode raises an exception. 

 

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