Parcourir la source

2003-11-01 Atsushi Enomoto <[email protected]>

	* XmlDocument.cs : Save(Stream) should not close the stream.

svn path=/trunk/mcs/; revision=19517
Atsushi Eno il y a 22 ans
Parent
commit
d952a741cc

+ 4 - 0
mcs/class/System.XML/System.Xml/ChangeLog

@@ -1,3 +1,7 @@
+2003-11-01  Atsushi Enomoto <[email protected]>
+
+	* XmlDocument.cs : Save(Stream) should not close the stream.
+
 2003-10-25  Atsushi Enomoto <[email protected]>
 
 	* DTDReader.cs, DTDValidatingReader.cs, XmlInputStream.cs,

+ 1 - 1
mcs/class/System.XML/System.Xml/XmlDocument.cs

@@ -891,7 +891,7 @@ namespace System.Xml
 			XmlTextWriter xmlWriter = new XmlTextWriter (outStream, TextEncoding);
 			xmlWriter.Formatting = Formatting.Indented;
 			WriteContentTo (xmlWriter);
-			xmlWriter.Close ();
+			xmlWriter.Flush ();
 		}
 
 		public virtual void Save (string filename)