Xml.XMLDoc.TXMLNode.FindHostedNode

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FindHostedNode(const NodeClass: TXMLNodeClass): IXMLNode;

C++

Xml::Xmlintf::_di_IXMLNode __fastcall FindHostedNode(const TXMLNodeClass NodeClass);

Properties

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

Description

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

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++).

See Also