//旧包
//创建一个文档
XmlDocument xmlDocumentOld = new XmlDocument();
//加载要读取的xml文件
xmlDocumentOld.Load(“xml的绝对路径”);
Debug.Log("旧包文件的路径" + @"d:/AssetBundles/AssetBundles" + (FileNumbre - 1) + @"\FileXml.xml");
//拿到下边的节点
XmlNodeList nodeListOld = xmlDocumentOld.SelectNodes("data/unity3d");
//循环遍历
string oldFileName = nodeListOld[TheSameIndex].Attributes["FullName"].Value;
//最新的文件列表的信息
//创建一个文档XmlDocument xmlDocument = new XmlDocument();
//加载要读取的xml文件
xmlDocument.Load(“xml的绝对路径");
Debug.Log("文件的路径" + OutPutPosition + "\\FileXml.xml");
//拿到下边的节点
XmlNodeList nodeList = xmlDocument.SelectNodes("data/unity3d");
//循环遍历
nodeList[i].Attributes["FullName"].Value = oldFileName;
//修改完之后,记得保存(不然就相当于没有修改)
xmlDocument.Save(OutPutPosition + "\\FileXml.xml");