Geeks With Blogs
Athens's Id Permanent Resident of the Blue Nowhere July 2009 Entries
XDocument Extension
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.... return xmlDocument; } } ......

Posted On Wednesday, July 1, 2009 5:38 PM

Extensions to the OpenXml SDK - Document
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Linq.Expressions; using System.Xml; using System.Xml.Linq; using DocumentFormat.OpenXml; using DocumentFormat.OpenXml.Pack... using System.Text; using System.IO.Packaging; using DocumentFormat.OpenXml.Word... /// <summary> /// DocumentExtensions contains functions to manage the creation, reading and writing of XDocument objects /// that come from an OpenXmlPackage /// </summary> ......

Posted On Wednesday, July 1, 2009 5:36 PM

Copyright © Athenz | Powered by: