日期:2014-05-17 浏览次数:20996 次
XmlDocument docu = new XmlDocument();
string[] str = { "a.xml", "b.xml", "c.xml" };
docu.LoadXml("<?xml version=\"1.0\" encoding=\"UTF-8\" ?><root></root>");
for (int i = 0; i < 3; i++)
{
if (!File.Exists(str[i]))
{
docu.Save(str[i]);
}
}
XDocument docu = new XDocument();
string[] str = { "a.xml", "b.xml", "c.xml" };
for (int i = 0; i < 3; i++)
{
if (!File.Exists(str[i]))
{
docu.Save(str[i]);
}
}