static void ParseProperties(XmlNode propertiesNode, Dictionary<string, string> properties){
XmlNodeList propertyList = propertiesNode.SelectNodes("property");
var enumerator = propertyList.GetEnumerator();
while (enumerator.MoveNext()) {
XmlNode propertyNode = (XmlNode)enumerator.Current;
string key = propertyNode.Attributes["name"].InnerText;
string value = propertyNode.Attributes["value"].InnerText;
properties.Add(key, value);
}
}