Mono Class Library: System.Xml.XmlReader Overview | Members

System.Xml.XmlReader.IsEmptyElement Property

Gets a value indicating whether the current node is an empty element (for example, <MyElement />). [Edit]

public abstract bool IsEmptyElement { get; }

Value

A bool where true indicates the current node is an element (XmlReader.NodeType equals XmlNodeType.Element) that ends with "/>", otherwise, false. [Edit]

Remarks

Operation

A corresponding EndElement node is not generated for empty elements.

This property is read-only.

Note to Inheritors
This property must be overridden in order to provide the functionality described above, as there is no default implementation.

[Edit]

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0