[导入]C#操作XML文件(例2)
摘要: //创建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");
阅读全文![]()
文章来源:http://www.cnblogs.com/302soft/archive/2007/01/17/622926.html
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");
阅读全文
文章来源:http://www.cnblogs.com/302soft/archive/2007/01/17/622926.html
浙公网安备 33010602011771号