摘要: 对于Xml文件的操作,C#.Net提供了相应的Xml操作类,方便对xml文件的读写下面是两种方法1、首先是创建xml文件,先实例化XmlDocument类,添加xml文档的声明 XmlDocument doc = new XmlDocument(); //加入声明 XmlDeclaration declaration = doc.CreateXmlDeclaration("1.0", "UTF-8", "yes"); doc.AppendChild(declaration);2、然后就是创建根节点Students,这里在根节点上创建三 阅读全文
posted @ 2012-12-12 13:00 bomo 阅读(1630) 评论(0) 推荐(1) 编辑