Browse Source

* XmlSerializer.cs: When the XmlReader is created by XmlSerializer, use
Normalization==true by default.

svn path=/trunk/mcs/; revision=33264

Lluis Sanchez 21 years ago
parent
commit
d8615d9cf4

+ 5 - 0
mcs/class/System.XML/System.Xml.Serialization/ChangeLog

@@ -1,3 +1,8 @@
+2004-09-03  Lluis Sanchez Gual  <[email protected]>
+
+	* XmlSerializer.cs: When the XmlReader is created by XmlSerializer, use
+	  Normalization==true by default.
+
 2004-09-02  Lluis Sanchez Gual  <[email protected]>
 
 	* ReflectionHelper.cs, SoapReflectionImporter.cs, XmlReflectionImporter.cs: 

+ 2 - 0
mcs/class/System.XML/System.Xml.Serialization/XmlSerializer.cs

@@ -289,12 +289,14 @@ namespace System.Xml.Serialization
 		public object Deserialize (Stream stream)
 		{
 			XmlTextReader xmlReader = new XmlTextReader(stream);
+			xmlReader.Normalization = true;
 			return Deserialize(xmlReader);
 		}
 
 		public object Deserialize (TextReader textReader)
 		{
 			XmlTextReader xmlReader = new XmlTextReader(textReader);
+			xmlReader.Normalization = true;
 			return Deserialize(xmlReader);
 		}