static private Dictionary<String, String> GetConfiguration(String fileName, String id)
{
Dictionary<String, String> dict = new Dictionary<string, string>();
System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
doc.Load("configuration.xml");
System.Xml.XmlNodeList parameters = doc.SelectNodes(String.Format(
"//component[@id='{0}']/parameters/parameter",
id));
foreach (System.Xml.XmlNode parameter in parameters)
{
try
{
dict.Add(parameter.Attributes["name"].Value,
parameter.Attributes["key"].Value);
}
catch
{
}
}
return dict;
}