public static void SetSkinImport(string file, string importtag, string value)
{
XmlDocument doc = LoadXMLDocument(file);
if (doc == null) return;
// build xpath string
string xpath = string.Format("/window/controls/import[@tag='{0}']", importtag);
XmlNode node = doc.DocumentElement.SelectSingleNode(xpath);
if (node == null)
return;
node.InnerText = value;
doc.Save(file);
}