Tag: XmlDocument

How to Convert XmlDocument to XDocument in C# ?

If you want to convert an XmlDocument to XDocument in C# , you can use the XmlNodeReader which does the conversion for you. Use the MoveToContent method and load it to the XDocument class. How to Convert XmlDocument to XDocument in C# ?