internal override void SaveXml(XmlElement parent) { CreateElement(parent, nodeName); if (attributes != null) { for (int n = 0; n < attributes.Length; n += 2) { Element.SetAttribute(attributes [n], attributes [n + 1]); } } ChildNodes.SaveXml(Element); }
internal override void SaveXml(XmlElement parent) { if (Element == null) { Element = parent.OwnerDocument.CreateElement(nodeName); parent.AppendChild(Element); if (attributes != null) { for (int n = 0; n < attributes.Length; n += 2) { Element.SetAttribute(attributes[n], attributes[n + 1]); } } ChildNodes.SaveXml(Element); } }