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