Close this stream and the underlying stream.
[Visual Basic] Overrides Public Sub Close() [C#] public override void Close(); [C++] public: override void Close(); [JScript] public override function Close();
Once this method is called, an InvalidOperationException is thrown if any call is made to write more output.
XmlTextWriter Class | XmlTextWriter Members | System.NewXml Namespace