diff options
author | Lluis Sanchez <lluis@novell.com> | 2004-09-03 15:24:56 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2004-09-03 15:24:56 +0400 |
commit | 2e8d184f2fe70073e3f80c1f1a6d8d737aa0c2cc (patch) | |
tree | e0d6acffebd4fa72e70593baa7079dd9dbab0e14 /mcs/class | |
parent | 2d0b5409f6fa89be0a1b57c4fd339c60213e8520 (diff) |
* XmlSerializer.cs: When the XmlReader is created by XmlSerializer, use
Normalization==true by default.
svn path=/branches/mono-1-0/mcs/; revision=33265
Diffstat (limited to 'mcs/class')
-rwxr-xr-x | mcs/class/System.XML/System.Xml.Serialization/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/System.XML/System.Xml.Serialization/XmlSerializer.cs | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/mcs/class/System.XML/System.Xml.Serialization/ChangeLog b/mcs/class/System.XML/System.Xml.Serialization/ChangeLog index e542d6a843d..ded7e921c04 100755 --- a/mcs/class/System.XML/System.Xml.Serialization/ChangeLog +++ b/mcs/class/System.XML/System.Xml.Serialization/ChangeLog @@ -1,3 +1,8 @@ +2004-09-03 Lluis Sanchez Gual <lluis@novell.com> + + * XmlSerializer.cs: When the XmlReader is created by XmlSerializer, use + Normalization==true by default. + 2004-07-15 Lluis Sanchez Gual <lluis@novell.com> * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for base64. This diff --git a/mcs/class/System.XML/System.Xml.Serialization/XmlSerializer.cs b/mcs/class/System.XML/System.Xml.Serialization/XmlSerializer.cs index d5efa65c1d3..aa57189fb34 100644 --- a/mcs/class/System.XML/System.Xml.Serialization/XmlSerializer.cs +++ b/mcs/class/System.XML/System.Xml.Serialization/XmlSerializer.cs @@ -251,12 +251,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); } |