Create an XElement class with the specified name.
using System; using System.Linq; using System.Xml.Linq; using System.Collections; using System.Collections.Generic; public class MainClass{ public static void Main(){ XElement el = new XElement("Root"); Console.WriteLine(el); } }