Closes an open element and pops the corresponding namespace scope.
Type Reason InvalidOperationException No element was open, or the XmlWriter.WriteState is WriteState.Closed.
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.
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0