/// <summary> /// 获得指定XML文件内容 /// </summary> /// <param name="strPath">XML文件相对路径</param> /// <returns>XML数据</returns> public static DataTable GetConfigXml(string strPath) { DataTable dt = null; try { DataSet ds = new DataSet(); ds.ReadXml(HttpContext.Current.Server.MapPath(strPath)); dt = ds.Tables[0]; } catch { } return dt; }