Steven Xiao's blog

远行者需要智慧,更需要耐心! 工欲善其事,必先利其器。 授之鱼,不如授之渔。

博客园 首页 新随笔 联系 订阅 管理

using System.Xml;

 //------------------------------

string xmlFile = Server.MapPath(@"files.xml");
 XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(xmlFile);
string xmlStr = xmlDoc.OuterXml;

TextBox1.Text = xmlStr; 

 

//--------------------------

 

 

1. Serialize and deserialize objects as Xml using generic types in C# 2.0

 http://geekswithblogs.net/paulwhitblog/archive/2007/07/20/114076.aspx

 

 

2.XML Serialization with C#

 http://www.willasrari.com/blog/xml-serialization-with-c/000231.aspx

 

3.Serializing .NET Objects Into XML – How to Retrieve XML Schema From an Interface

 http://blog.bodurov.com/XML-Schema-From-dot-NET-Interface

posted on 2009-11-13 15:56  Steven Xiao  阅读(2373)  评论(4编辑  收藏  举报