【发布时间】:2012-08-09 10:52:49
【问题描述】:
XElement school = new XElement("school",
new XElement("SectionA",
new XElement("Student", "guna"),
new XElement("Student", "Anbu"),
new XElement("Student", "Chandru")));
XElement Student = new XElement("Student","Rajesh");
school.Save(@AppDomain.CurrentDomain.BaseDirectory + "Joiningelements.xml");
这里我想在 school 元素中添加 SectionA 的 student 子元素。
【问题讨论】:
-
这和 WPF 有什么关系?
标签: c# xml linq-to-xml