/// <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;
        }

  

相关文章:

  • 2022-02-03
  • 2022-03-06
  • 2022-02-05
  • 2021-08-11
猜你喜欢
  • 2022-12-23
  • 2021-11-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-06
  • 2021-06-22
相关资源
相似解决方案