Mono Class Library: System.Xml.XmlTextReader Overview | MembersSystem.Xml.XmlTextReader.IsEmptyElement Property |
Gets a value indicating whether the current node is an empty element (for example, <MyElement />). [Edit]
|
A bool where true indicates the current node is an element (XmlTextReader.NodeType equals XmlNodeType.Element) that ends with "/>"; otherwise, false. [Edit]
This property is read-only.
A XmlNodeType.EndElement node is not generated for empty elements.
Note:[Edit]This property determines the difference between the following:
<item bar="123"/> (IsEmptyElement is true).
<item bar="123"> (IsEmptyElement is false).
This property overrides XmlReader.IsEmptyElement.
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0