如图所示
如果xml在程序的根目录下,就是Server.MapPath("~/xml/国内城市.xml");在类中也可以使用System.Web.HttpContext.Current.Server.MapPath你的程序集要引用System.Web
Server.MapPath 要在aspx里面写,单独的class不行。