摘要:
进行操作的xml文件:products.xmlView Code增加节点:XmlDocumentdoc=newXmlDocument();doc.Load("products.xml");XmlNodexn=doc.SelectSingleNode("products");XmlElementxe=doc.CreateElement("product");xe.SetAttribute("name","haha");xe.SetAttribute("price"," 阅读全文