Export (0) Print
Expand All

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.

Namespace: System.Xml.XPath
Assembly: System.Xml (in system.xml.dll)

public abstract bool IsEmptyElement { get; }
/** @property */
public abstract boolean get_IsEmptyElement ()

public abstract function get IsEmptyElement () : boolean

Not applicable.

Property Value

Returns true if the current node is an empty element; otherwise, false.

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

Element

IsEmptyElement Value

<item num="123"/>

true

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

false

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

false

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft