* XmlElement.cs : IsEmpty has removed attributes since it incorrectly used RemoveAll(). svn path=/trunk/mcs/; revision=15986
@@ -1,3 +1,8 @@
+2003-07-06 Atsushi Enomoto <[email protected]>
+
+ * XmlElement.cs : IsEmpty has removed attributes since it incorrectly
+ used RemoveAll().
2003-07-06 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : Load(string filename) should close its stream.
@@ -109,8 +109,10 @@ namespace System.Xml
set {
isNotEmpty = !value;
- if(value)
- RemoveAll();
+ if(value) {
+ while (FirstChild != null)
+ RemoveChild (FirstChild);
+ }
}