@H_301_0@创建:
- XmlDocumentxmlDoc=newXmlDocument();
- //创建类型声明节点
- XmlNodenode=xmlDoc.CreateXmlDeclaration("1.0","utf-8","");
- xmlDoc.AppendChild(node);
- //创建根节点
- XmlNoderoot=xmlDoc.CreateElement("User");
- xmlDoc.AppendChild(root);
- CreateNode(xmlDoc,root,"name","xuwei");
- "sex","male");
- "age","25");
@H_301_0@读取:3种方法 @H_301_0@1.XmlDocument @H_301_0@2.XmlTextReader @H_301_0@3.linq to xml 原文链接:https://www.f2er.com/xml/293722.html