using System;
using System
using System
using System
using System
using System
namespace HDUSearch
public class IndexConfig
GetValue#region GetValue
public string GetValue(string key)
string assemblyFilePath = Assembly
string assemblyDirPath = Path
XmlDocument xmlDoc = new XmlDocument();
xmlDoc
XmlNodeList nodeList = xmlDoc
foreach (XmlNode xn in nodeList) //遍歷所有子節點
XmlElement xe = (XmlElement)xn; //將子節點類型轉換為XmlElement類型
if (xe
return xe
break;
}
}
return
}
#endregion
}
}
From:http://tw.wingwit.com/Article/program/net/201311/11954.html