Flush whatever is in the buffer to the underlying streams and flush the underlying stream.
[Visual Basic] Overrides Public Sub Flush() [C#] public override void Flush(); [C++] public: override void Flush(); [JScript] public override function Flush();
This is called instead of Close() when you want to write more to the underlying stream without losing what is still in the XmlWriter buffer.
XmlTextWriter Class | XmlTextWriter Members | System.NewXml Namespace