Geeks With Blogs
Athens's Id Permanent Resident of the Blue Nowhere

public static class XDocumentExtensions

{

/// <summary>

/// Saves the contents of an XDocument object to an XmlDocument object

/// </summary>

/// <param name="xDocument">Source document</param>

/// <returns>Destination document</returns>

public static XmlDocument GetXmlDocument(this XDocument xDocument)

{

XmlDocument xmlDocument = new XmlDocument();

xmlDocument.Load(xDocument.CreateReader());

return xmlDocument;

}

}

Posted on Wednesday, July 1, 2009 5:38 PM LINQ | Back to top


Comments on this post: XDocument Extension

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Athenz | Powered by: GeeksWithBlogs.net