System.Xml.XmlWriter.WriteFullEndElement Method

When overridden in a derived class, closes one element and pops the corresponding namespace scope.

Syntax

public abstract void WriteFullEndElement ()

Exceptions

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

Remarks

This method always writes the full end tag. This is useful when dealing with elements that must include a full end tag. For example, browsers expect HTML script blocks to be closed with "</script>".

For the asynchronous version of this method, see XmlWriter.WriteFullEndElementAsync.

Requirements

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