<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>疯子阿飞 &#187; XML</title>
	<atom:link href="http://afei.name/archives/tag/xml/feed" rel="self" type="application/rss+xml" />
	<link>http://afei.name</link>
	<description>Blog of Mad Charlie</description>
	<lastBuildDate>Mon, 12 Dec 2011 17:16:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>XmlWriter让XML格式化输出（自动缩进）</title>
		<link>http://afei.name/archives/102</link>
		<comments>http://afei.name/archives/102#comments</comments>
		<pubDate>Tue, 28 Jul 2009 02:05:47 +0000</pubDate>
		<dc:creator>阿飞</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.afei.name/?p=102</guid>
		<description><![CDATA[在网上找了很多次XmlWriter格式化（自动缩进）输出的写法，每次用完就忘了，在此备忘： System.Xml.XmlDocument doc = new XmlDocument&#40;&#41;; //Your Code...中间对XmlDocument的一些加载、操作 &#160; //开始格式化代码 System.Xml.XmlWriterSettings set = new XmlWriterSettings&#40;&#41;; set.Indent = true; set.IndentChars = &#34;\t&#34;; set.Encoding = System.Text.Encoding.UTF8; &#160; System.IO.MemoryStream stream = new System.IO.MemoryStream&#40;&#41;; System.Xml.XmlWriter writer = XmlWriter.Create&#40;stream, set&#41;; //此处也可以用一个StringBuilder代替stream, 但容易遇到编码问题 &#160; doc.Save&#40;writer&#41;; &#160; &#8230; <a href="http://afei.name/archives/102">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://afei.name/archives/102/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

