关于C#里XML的使用问题 关于C#里XML的使用问题,比如我要创建一个xml文件并保存到指定的目录下和节点及数据的增删改,最好是详细点,因为我是菜鸟级人物。有相关资料的也可发到的我邮箱里:[email protected],现在这谢谢大家了。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 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"); 如何遍历某个图片所有像素并找出用的像素最多的颜色 关于生成手机号的问题 公交路线转两次车,求大神帮忙看看代码 数据库access 字段filedata 类型old 一个字段怎么样保存多张图片和读取 winfrom 中 webservice 的调用问题 能否用MSCOMM控件实现两台电脑文件传输??? 关于HttpRuntime.Cache和Hashtable的疑问 求 C# 操作 access2007的代码 救急:30分 StreamWriter乱码问题 多线程问题 关于滚动弹出窗口的问题
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");