doc.Load(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) +"\\"+xmlpath);
System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase ; 获取当前路径
Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) 获取当前路径的目录