111,129
社区成员
发帖
与我相关
我的任务
分享
string s = File.ReadAllText("你的文件.xml",Encoding.UTF8);
s = s.Replace("广告创意01","yeah~");
File.WriteAllText("你的文件2.xml",s,Encoding.UTF8);
XDocument xdoc = XDocument.Load("../../XMLFile1.xml");
foreach (var item in xdoc.Descendants("item"))
{
item.SetAttributeValue("itemtitle", "new");
}