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

System.Xml.XmlWriter.WriteEndElement Method

Closes an open element and pops the corresponding namespace scope. [Edit]

public abstract void WriteEndElement ()

Exceptions

TypeReason
InvalidOperationExceptionNo element was open, or the XmlWriter.WriteState is WriteState.Closed. [Edit]

Remarks

Operation
This method closes one element and pops the corresponding namespace scope. If the open element does not contain content, it is closed as an empty element using " />"; otherwise an end element is written.

Note to Inheritors
This method 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