How to convert a XMLDocument to XDocument in C# and VB.NET
To convert a XMLDocument to XDocument in C# and VB.NET you can use the following extensions method. Sample C# Sample VB.NET for more informations see the MSDN: XmlDocument Class,XDocument-Class