摘要: 一:通过实体对象生成xml文档1.实体对象必须包含熟悉,且都是public类型,例如下面的person类publicclassPerson{publicstringId{get;set;}publicstringName{get;set;}publicstringAge{get;set;}publicstringSex{get;set;}}2.通过反射获得熟悉名称,并且转换为小写,同时使用System.Xml命名空间的相关类创建xml文档publicstaticvoidCreateXmlByModel(List<object>list,stringfilename,stringen 阅读全文
posted @ 2012-09-14 11:48 流星剑 阅读(2736) 评论(2) 推荐(0) 编辑