public void XmlWrite( )
{
XmlDocument doc = new XmlDocument();
XmlDeclaration xmldecl = doc.CreateXmlDeclaration("1.0", "utf-8", null);
XmlElement root = doc.DocumentElement;
doc.InsertBefore(xmldecl, root);
XmlElement ele = doc.CreateElement("Table");
doc.AppendChild(ele);
for (int i =0; i < ChineseNames.Count; i++)
{
XmlElement row = doc.CreateElement("Attribute");
row.SetAttribute("ChineseName",ChineseNames[i].ToString());
row.SetAttribute("EnglishName", EnglishNames[i].ToString());
ele.AppendChild(row);
}
doc.Save(@"F:\對照表.xml");
}