using System.Xml; class Program { static void Main(string[] args) { XmlDocument xmlDoc = new XmlDocument(); xmlDoc.LoadXml("In this code example, an XmlDocument is created and loaded from a string. The ToXDocument method is then called on the XmlDocument, which converts it to an XDocument. The resulting XDocument is then printed to the console. The package library for System.Xml is part of the .NET framework, which is a collection of libraries and tools provided by Microsoft for building applications on the Windows platform."); XDocument xdoc = xmlDoc.ToXDocument(); Console.WriteLine(xdoc); } } Hello World