Xml.XMLDoc.TXMLNodeList.GetNode

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetNode(const IndexOrName: OleVariant): IXMLNode;

C++

Xml::Xmlintf::_di_IXMLNode __fastcall GetNode(const System::OleVariant &IndexOrName);

Properties

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

Description

Returns a specified node from the list.

GetNode returns the interface to a node that is identified by name or by position.

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.

See Also