LINQ in Action roller

Using the Open XML SDK and LINQ to XML to Remove Comments from an Open XML Wordprocessing Document

This post presents a snippet of code to remove comments from an Open XML Wordprocessing document. Note: This post may be of interest to LINQ to XML developers, as it contains some information that helps you write queries that perform better. In the case of very large documents, the approach described below performs much better than other approaches. The code is very simple: remove all w:commentRangeStart, w:commentRangeEnd, and w:commentReference elements in the main document part, and then remove Read More...
Published Sunday, July 13, 2008 8:35 PM by Eric White's Blog
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication