RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNode.GetHasChildNodes Method

Indicates whether this node has any child nodes.

Pascal
function GetHasChildNodes: Boolean;
C++
__fastcall Boolean GetHasChildNodes();

Use the TXMLNode object's IXMLNode interface to call the protected GetHasChildNodes method. GetHasChildNodes returns true if the underlying DOM node has any child nodes, false if it doesn't. 

Note that even if the underlying DOM node has a child node, there may not be a TXMLNode object to represent that child. For example, text nodes do not, by default, have corresponding TXMLNode wrappers. Rather, the text becomes the value of the parent element node. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!