HasChildNodes Property

XmlNode.HasChildNodes Property


Gets a value indicating whether this node has any child nodes.

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

abstract HasChildNodes : bool with get
override HasChildNodes : bool with get

Property Value

Type: System.Boolean

true if the node has child nodes; otherwise, false.

For information about child nodes, see the W3C DOM (Core) Level 1 specification

The following example displays all the child nodes of the root element.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft