示例#1
0
        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);
        }
示例#2
0
 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);
     }
 }