zip's

while(true) { Write it down; Think about it; Refine it; Sleep(); }

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
using (TextWriter tw = new StreamWriter(fileName))
{
XmlTextWriter w = new XmlTextWriter(tw);

w.Formatting = Formatting.Indented;

w.WriteStartElement("Root");
w.WriteStartElement("Child01");
w.WriteAttributeString("attr01", "blabla");
w.WriteString("blablabla");
w.WriteEndElement(); // Child01
w.WriteEndElement(); // Root
}

 

tbd…

posted on 2011-07-25 15:49  zip's  阅读(160)  评论(0编辑  收藏  举报