True if the current node is element and has one or more children; Otherwise False (attribute and namespace nodes don't have "children").
If the System.Xml.XPath.XPathNavigator is positioned on a node that cannot have child nodes, the XPathNavigator.HasChildren property always returns false.
The following table lists the child node System.Xml.XPath.XPathNodeType nodes allowed for each System.Xml.XPath.XPathNodeType node.
XPathNodeType.Root |
XPathNodeType.Element, XPathNodeType.Comment, or XPathNodeType.ProcessingInstruction nodes. System.Xml.XmlNodeType.DocumentFragment is equivalent to XPathNodeType.Root when using the System.Xml.XmlDocument class and can have the same children as an element. |
XPathNodeType.Element |
XPathNodeType.Element, XPathNodeType.Text, XPathNodeType.Comment, XPathNodeType.ProcessingInstruction, XPathNodeType.Whitespace or XPathNodeType.SignificantWhitespace nodes. |
All other System.Xml.XPath.XPathNodeType nodes |
Cannot have child nodes. |