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

System.Xml.XmlTextWriter.WriteEndElement Method

Closes an open element and pops the corresponding namespace scope.

public override void WriteEndElement ()

Exceptions

TypeReason
InvalidOperationExceptionNo element was open, or the XmlTextWriter.WriteState is WriteState.Closed.

Remarks

If the open element does not contain content, it is closed as an empty element using " />"; otherwise an end element is written.

Note:

This method overrides XmlWriter.WriteEndElement.

Requirements

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