RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNode.HasChildNode Method (DOMString)

Indicates whether the node has a child node with the specified name.

Pascal
function HasChildNode(const ChildTag: DOMString): Boolean; overload;
function HasChildNode(const ChildTag: DOMString; const NamespaceURI: DOMString): Boolean; overload;
C++
__fastcall Boolean HasChildNode(const DOMString ChildTag);
__fastcall Boolean HasChildNode(const DOMString ChildTag, const DOMString NamespaceURI);

Applications can't call the protected HasChildNode method. It is used internally to determine when the underlying DOM node has a child with the specified name. 

ChildTag is the local tag name of the child to find. 

NamespaceURI identifies the namespace in which ChildTag is defined. 

HasChildNode returns true if the underlying DOM node includes the specified child node. Otherwise, it returns false. 

 

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