| http://www.MianFeiLunWen.com 免费论文网 曹庆旭 2008-2-25 23:20:46 |
| ------------------------------------------[发送]-[打印]-[投稿]-[VIP]--------------- |
[SoapHeader("sHeader")] public System.Xml.XmlDocument GetUpdateData() { //验证用户是否登陆 if(sHeader==null) return null; if(!DataProvider.GetInstance.CheckLogin(sHeader.Username,sHeader.Password)) return null; //取得更新的xml模板内容 XmlDocument doc = new XmlDocument(); doc.Load(Server.MapPath("update.xml"));www.lunwenwang.com XmlElement root = doc.DocumentElement; //看看有几个文件需要更新 XmlNode updateNode = root.SelectSingleNode("filelist"); string path = updateNode.Attributes["sourcepath"].Value; int count = int.Parse(updateNode.Attributes["count"].Value); //将xml中的value用实际内容替换 for(int i=0;i= updateNode.ChildNodes[i]; string fileName = path + itemNode.Attributes["name"].Value; FileStream fs = File.OpenRead(Server.MapPath(fileName));本篇论文共 6页,当前在第 2页 1 2 3 4 5 6
|
| -------------------------------------------------------[发送]-[打印]-[投稿]-[VIP]-- |
|
|