示例#1
0
 public XmlHelper Save(string path)
 {
     if (R_CurrentDocument != null)
     {
         R_CurrentDocument.Save(path);
     }
     return(this);
 }
示例#2
0
        public XmlElement CreateElement(string name, XmlNode parent, Hashtable attributes = null)
        {
            XmlElement xml = R_CurrentDocument.CreateElement(name);

            if (attributes != null)
            {
                foreach (DictionaryEntry item in attributes)
                {
                    xml.SetAttribute(item.Key.ToString(), item.Value.ToString());
                }
            }
            parent.AppendChild(xml);
            return(xml);
        }