摘要:
private void button1_Click(object sender, EventArgs e) { XDocument dow = new XDocument( new XDeclaration("1.0", "utf-8", "yes"), new XElement("person", new XElement("age",12345))); dow.Save(Application.StartupPath + "\\my.xml"); MessageBox. 阅读全文