XmlDocument doc = new XmlDocument ();
XmlElement el = (XmlElement) doc.ImportNode (element, true);
doc.AppendChild (el); // FIXME: it should not be appended
- el.RemoveAll ();
+ while (el.LastChild != null)
+ el.RemoveChild (el.LastChild);
foreach (XmlNode n in value)
el.AppendChild (doc.ImportNode (n, true));
element = el;
else {
XmlDocument document = new XmlDocument ();
XmlElement el = document.ImportNode (element, true) as XmlElement;
- el.Attributes.RemoveAll ();
document.AppendChild (el); // FIXME: it should not be appended
el.SetAttribute (attribute, value);
element = el;