public XmlHelper Save(string path) { if (R_CurrentDocument != null) { R_CurrentDocument.Save(path); } return(this); }
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); }