摘要:
/// <summary> /// 删除商品xml提交动作 /// </summary> /// <param name="ids">id集合</param> public void etao_delProductXml(string ids) { XmlDocument doc1 = new XmlDocument(); doc1.Load(Server.MapPath("~/etao/IncrementIndex.xml")); XmlNodeList nodes1 = doc1.GetElements 阅读全文
摘要:
XmlDocument xml = new XmlDocument(); xml.Load(Server.MapPath("~/etao/IncrementIndex.xml")); XmlNode item_ids = xml.GetElementsByTagName("item_ids")[0]; XmlElement newElement = xml.CreateElement("outer_id"); newElement.SetAttribute("action", "upload") 阅读全文
摘要:
XmlDocument doc1 = new XmlDocument(); doc1.Load(Server.MapPath("~/etao/IncrementIndex.xml")); //修改商品 XmlNodeList nodes1 = doc1.GetElementsByTagName("outer_id"); bool ismodif = false; foreach (XmlNode xn in nodes1)//遍历任何子节点 { XmlElement xe = (XmlElement)xn;//将子节点类型转换为XmlElement类型 阅读全文