RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IXMLNode.HasChildNodes Property

Indicates whether this node has any child nodes.

Pascal
property HasChildNodes: Boolean;
C++
__property Boolean HasChildNodes;

HasChildNodes is true if the underlying DOM node has any child nodes, false if it has no children. 

Note that in the underlying DOM implementation, given the following XML

<Title> Understanding XML </Title>

the "Title" node has a single child (a text node with the value 'Understanding XML'). 

 

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