关于C#里XML的使用问题,比如我要创建一个xml文件并保存到指定的目录下和节点及数据的增删改,最好是详细点,因为我是菜鸟级人物。
有相关资料的也可发到的我邮箱里:[email protected],现在这谢谢大家了。

解决方案 »

  1.   


                System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
                System.Xml.XmlElement node = doc.CreateElement("root");
                doc.AppendChild(node);
                System.Xml.XmlElement subnode = doc.CreateElement("sub");
                subnode.SetAttribute("name", "子节点");
                node.AppendChild(subnode);
                doc.Save("e:\\1.xml");