コード例 #1
0
ファイル: XmlHelper.cs プロジェクト: a13782425/SkillSystem
 public XmlHelper Save(string path)
 {
     if (R_CurrentDocument != null)
     {
         R_CurrentDocument.Save(path);
     }
     return(this);
 }
コード例 #2
0
ファイル: XmlHelper.cs プロジェクト: a13782425/SkillSystem
        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);
        }