RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNodeList.FindNode Method (DOMString)

Returns a specified node from the list.

Pascal
function FindNode(NodeName: DOMString): IXMLNode; overload;
function FindNode(NodeName: DOMString; NamespaceURI: DOMString): IXMLNode; overload;
function FindNode(ChildNodeType: TGuid): IXMLNode; overload;
C++
__fastcall IXMLNode FindNode(DOMString NodeName);
__fastcall IXMLNode FindNode(DOMString NodeName, DOMString NamespaceURI);
__fastcall IXMLNode FindNode(TGuid ChildNodeType);

Call FindNode to access a particular node in the list. 

NodeName is the node to access. It specifies the LocalName property of the desired node. 

NamespaceURI identifies the namespace that qualifies NodeName. It is the same as the NamespaceURI property of the desired node. If the first syntax is used (omitting NamespaceURI), FindNode uses the value of the DefaultNamespaceURI property. 

ChildNodeType identifies the node to access by its interface type (GUID), rather than by name. When using ChildNodeType, FindNode returns the first child node it finds that implements the specified interface. 

FindNode returns the interface for the node if it is in the list. If NodeName or ChildNodeType does not specify a node in the list, FindNode returns nil (Delphi) or NULL (C++). 

 

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