1 XmlDocument doc = new XmlDocument();
 2                 doc.Load(HttpContext.Current.Server.MapPath("~/App_Data/" + xmlName + ".xml"));
 3                 XmlNodeList nodeList = doc.SelectNodes(xpath);
 4                 foreach (XmlNode sub in nodeList)
 5                 {
 6                     if (value.IndexOf(sub.Attributes["value"].Value) != -1)
 7                     {
 8                         value = sub.Attributes["value"].Value;
 9                     }
10                 }

 

相关文章:

  • 2022-12-23
  • 2021-05-27
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
  • 2021-05-24
猜你喜欢
  • 2022-12-23
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案