string xmlFile = @"http://yyyyy.xxxxx.com.cn/xml/XMLshenhe.xml"; XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(xmlFile); XmlNode node = xmlDoc.SelectSingleNode(@"/shenhe/shenhes/shen"); node.InnerText = str;//修改為100 xmlDoc.Save(xmlFile);就是最后一句 不行啊 報錯 后來從網(wǎng)上查了下 說這個方法不能跨域修改那想問問各位大大 真么修改最好詳細點 我有點笨 明天去買核桃
- 2 回答
- 0 關注
- 645 瀏覽
添加回答
舉報
0/150
提交
取消