摘要: using System;using System.Windows.Forms;using System.Xml;namespace winformDemo{ public partial class Form2 : Form { public Form2() { InitializeCompone 阅读全文
posted @ 2017-08-21 19:23 忧叹ic 阅读(288) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u 阅读全文
posted @ 2017-08-21 19:02 忧叹ic 阅读(932) 评论(0) 推荐(0) 编辑
摘要: 使用XmlReader读Xml XmlDocument和XElement在读取Xml时要将整个Xml文档放到内存中去操作,这样做操作简单,但是很费内存和IO(可能是磁盘IO或者网络IO);而在有些场景下我们必须考虑尽可能节省内存和IO的开销,这时候就该XmlReader和XmlWriter出场了。 阅读全文
posted @ 2017-08-21 18:56 忧叹ic 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 使用XmlWriter写Xml 假定创建了XmlWriter的实例变量xmlWriter,下文中将使用此实例变量写Xml1.如何使用XmlWriter写Xml文档声明 // WriteStartDocument方法可以接受一个bool参数(表示standalone,是否为独立文档)或者不指定参数st 阅读全文
posted @ 2017-08-21 18:53 忧叹ic 阅读(495) 评论(0) 推荐(0) 编辑