Xml.XMLDoc.TXMLNodeList.GetNode
Delphi
function GetNode(const IndexOrName: OleVariant): IXMLNode;
C++
Xml::Xmlintf::_di_IXMLNode __fastcall GetNode(const System::OleVariant &IndexOrName);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | protected | Xml.XMLDoc.pas Xml.XMLDoc.hpp |
Xml.XMLDoc | TXMLNodeList |
Description
Renvoie depuis la liste un noeud spécifié.
GetNode renvoie l'interface d'un noeud identifié par son nom ou sa position.
IndexOrName identifie le noeud désiré. Cela peut être
l'indice du noeud, 0 étant l'indice du premier noeud, 1 l'indice du deuxième noeud, etc.
la propriété LocalName d'un noeud de la liste.
Si IndexOrName n'identifie pas un noeud de la liste, GetNode essaie de créer un noeud portant le nom spécifié par IndexOrName. En cas d'échec, GetNode déclenche une exception.