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!

XmlNavigator.IsEmptyTag

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);

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

XmlNavigator Class | XmlNavigator Members | System.NewXml Namespace