System.Xml.XPath.XPathNavigator.IsEmptyElement Property

When overridden in a derived class, gets a value indicating whether the current node is an empty element without an end element tag.

Syntax

public abstract bool IsEmptyElement { get; }

Value

True if the current ndoe is empty tag element; False if the current node is not an element, or an element that has contents, or an element that has explicit close tag.

Remarks

This property enables you to determine the difference between the following different elements.

<item num="123"/>

true

<item num="123">test</item>

false

<item num="123"></item>

false

Requirements

Namespace: System.Xml.XPath
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0