请给出代码
在线等。

解决方案 »

  1.   

    XmlDocument x = new XmlDocument();
    x.LoadXml("<ok>hah</ok>");
    x.Save(Server.MapPath("x.xml"));
      

  2.   

    cankao http://msdn.microsoft.com/library/CHS/cpref/html/frlrfSystemXml.asp
      

  3.   

    if (!File.Exists(Server.MapPath("3.xml")))
            {
                XmlDocument _strdoc = new XmlDocument();
                _strdoc.LoadXml("<wo></wo>");
                _strdoc.Save(Server.MapPath("3.xml"));
            }代码如上,我试了
    好象不太好使,找不到建立的文件!
      

  4.   

    要给你的ASPNET帐号加在那个目录的写入权才行ASPNET在做WEB程序时权限很低的