Gets a value indicating whether the current node is an empty element (for example, <MyElement/>).
[Visual Basic] MustOverride Public Property IsEmptyTag As Boolean [C#] public bool IsEmptyTag {abstract get; abstract set;} [C++] public: __property virtual bool get_IsEmptyTag() = 0;public: __property virtual void set_IsEmptyTag(bool) = 0; [JScript] public abstract function get IsEmptyTag() : Boolean; public abstract function set IsEmptyTag(Boolean);
true if the current node is an element (NodeType equals Element) that ends with "/>"; otherwise, false.
This property enables you to determine the difference between the following:
<foo bar="123"/> (IsEmptyTag is true).
<foo bar="123"> (IsEmptyTag is false)
Note that a corresponding EndTag element is not generated for empty elements.
XmlNavigator Class | XmlNavigator Members | System.NewXml Namespace