RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNode.FindHostedNode Method

Returns the IXMLNode interface for a hosted node given its implementation class.

Pascal
function FindHostedNode(const NodeClass: TXMLNodeClass): IXMLNode;
C++
__fastcall IXMLNode FindHostedNode(const TXMLNodeClass NodeClass);

Applications can't call the protected FindHostedNode method. Descendant classes call this method to locate a hosted node of a particular class type. 

FindHostedNode searches the nodes in the HostedNodes list and returns the first one it finds that is an instance of descendant of NodeClass. If this node does not have a hosted node of the specified class, FindHostedNode returns nil (Delphi) or NULL (C++). 

 

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