创建我的xml文件的代码是:
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
XmlWriterSettings settings = new XmlWriterSettings();
settings.Encoding = Encoding.UTF8;
settings.Indent = true;
settings.NewLineOnAttributes = true;
using (XmlWriter xmlWriter = XmlWriter.Create(saveFileDialog1.FileName, settings))
{
dt.WriteXml(xmlWriter);
xmlWriter.Close();
}
}
DocumentElement
更改为table name = "UnknownTable"
?