XML LINQ C#

using System;
using System.IO;
using System.Linq;
using System.Xml.Linq;
using System.Xml;
using System.Collections;
using System.Collections.Generic;
public class MainClass
{
    public static void Main()
    {
        XDocument doc = new XDocument(
            new XElement("Root",
                new XElement("Child", "content")
            )
        );
        doc.Save("Root.xml");
        Console.WriteLine(File.ReadAllText("Root.xml"));
    }
}