Gets or sets a value indicating whether the current node is an empty element (for example, <MyElement/>).
[Visual Basic] Overridable Public Property IsEmptyTag As Boolean [C#] public bool IsEmptyTag {override get; override set;} [C++] public: __property virtual bool get_IsEmptyTag(); public: __property virtual void set_IsEmptyTag(bool); [JScript] public function get IsEmptyTag() : Boolean; public 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.
DataDocumentNavigator Class | DataDocumentNavigator Members | System.NewXml Namespace