NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlTextReader.IsEmptyTag

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;

Property Value

true if the current node is an element (NodeType equals Element) that ends with "/>"; otherwise, false.

Remarks

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.

See Also

XmlTextReader Class | XmlTextReader Members | System.NewXml Namespace