Xml.XMLDoc.TXMLNode.GetHasChildNodes
Delphi
function GetHasChildNodes: Boolean;
C++
bool __fastcall GetHasChildNodes();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Xml.XMLDoc.pas Xml.XMLDoc.hpp |
Xml.XMLDoc | TXMLNode |
Description
Indicates whether this node has any child nodes.
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.