Close this search box.

XDocument Extension

public static class XDocumentExtensions
  /// <summary>
  /// Saves the contents of an XDocument object into a XmlDocument object
  /// </summary>
  /// <param name="xDocument">Source document</param>
  /// <returns>Destination document</returns>
  public static XmlDocument GetXmlDocument(this XDocument xDocument) {
    XmlDocument xmlDocument = new XmlDocument();
    return xmlDocument;

Share this Post:

This article is part of the GWB Archives. Original Author: Athens Springer

Related Posts