[ad_1]
This will create a new XElement under the Root node which is where I think you want it.
xmlDoc.Root.Add(
new XElement("product",
new XElement("name", "456"),
new XElement("price", "456")));
0
[ad_2]
solved C# problem in append items to XML document