diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2006-02-28 18:59:55 +0300 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2006-02-28 18:59:55 +0300 |
commit | c01749afbcef97791029a28f7e8245055af58c44 (patch) | |
tree | 5c3ed7cb626f2fcd8455c6929cb7a874adb1d875 | |
parent | 08224d944e54989a25d4f9b04ff3b852e8890fe6 (diff) |
2006-02-28 Atsushi Enomoto <atsushi@ximian.com>
* XmlElement.cs : (WriteTo) use IsEmpty to determine which to use:
WriteEndElement() and WriteFullEndElement(). Fixed sys.security
regression.
svn path=/trunk/mcs/; revision=57395
-rw-r--r-- | mcs/class/System.XML/System.Xml/ChangeLog | 6 | ||||
-rw-r--r-- | mcs/class/System.XML/System.Xml/XmlElement.cs | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/mcs/class/System.XML/System.Xml/ChangeLog b/mcs/class/System.XML/System.Xml/ChangeLog index eb9e65c3056..0a9cd36faa3 100644 --- a/mcs/class/System.XML/System.Xml/ChangeLog +++ b/mcs/class/System.XML/System.Xml/ChangeLog @@ -1,3 +1,9 @@ +2006-02-28 Atsushi Enomoto <atsushi@ximian.com> + + * XmlElement.cs : (WriteTo) use IsEmpty to determine which to use: + WriteEndElement() and WriteFullEndElement(). Fixed sys.security + regression. + 2006-02-24 Atsushi Enomoto <atsushi@ximian.com> * XmlTextWriter2.cs : diff --git a/mcs/class/System.XML/System.Xml/XmlElement.cs b/mcs/class/System.XML/System.Xml/XmlElement.cs index 34566dac902..a49eb3108b9 100644 --- a/mcs/class/System.XML/System.Xml/XmlElement.cs +++ b/mcs/class/System.XML/System.Xml/XmlElement.cs @@ -425,10 +425,10 @@ namespace System.Xml WriteContentTo (w); - if (isNotEmpty) - w.WriteFullEndElement (); - else + if (IsEmpty) w.WriteEndElement (); + else + w.WriteFullEndElement (); } #endregion |