摘要: //创建xml文件(添加根节点的属性)

StreamWriter sw = File.CreateText(AppDomain.CurrentDomain.BaseDirectory + "Xml\\" + xmlFilename + ".xml");

sw.WriteLine("");

sw.WriteLine("");

sw.Close();

XmlDocument doc = new XmlDocument();

doc.Load(AppDomain.CurrentDomain.BaseDirectory + "Xml\\" + xmlFilename + ".xml");

  阅读全文[导入]C#操作XML文件(例2)

寒夜听雨 2007-01-17 17:00 发表评论

文章来源:http://www.cnblogs.com/302soft/archive/2007/01/17/622926.html

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-18
  • 2021-05-17
  • 2022-03-09
  • 2021-08-07
  • 2021-12-25
猜你喜欢
  • 2021-10-07
  • 2022-12-23
  • 2021-10-09
  • 2021-11-27
  • 2022-12-23
相关资源
相似解决方案