public void Save(XmlItem rootItem) { rootItem.Clear(); foreach (KeyValuePair <string, DictionaryItem> pair in names) { XmlItem xi = rootItem.Add(); xi.Name = pair.Key; xi.ClearProps(); xi.SetProp("name", pair.Value.SourceName); //xi.Text = String.Concat("name=\"", pair.Value.SourceName, "\""); } //for (int i = 0; i < FNames.Count; i++) //{ // XmlItem xi = rootItem.Add(); // xi.Name = FNames.Keys[i]; // xi.Text = "name=\"" + FNames.Values[i].SourceName + "\""; //} }