|
|
Browse by Tags
All Tags » LINQ to XML » OpenXML
Showing page 1 of 2 (20 total posts)
-
When I was writing the LINQ to XML documentation, Ralf Lämmel was the program manager for LINQ to XSD, an incubation project in the data programmability group at Microsoft. Ralf really helped me a lot in those days, both with questions on LINQ to XML, and questions around functional programming. It was in email exchanges ...
-
Many types of documents contain code, including API documentation, tutorials, specifications, technical books, and magazine articles. Too often, there is no way to automate testing and validation of this code. This post presents a small example program that shows how to use content controls in Open XML word documents to delineate code ...
-
Today, the development team for the Open XML SDK has announced that they have released the first Community Technology Preview (CTP) of version 2 of the Open XML SDK. Download it at http://go.microsoft.com/fwlink/?LinkId=127912. There is a lot of very cool stuff in this release, including:
Strongly typed document object model ...
-
Content controls are an effective way to add structure to word processing documents. You can write a very small LINQ query to retrieve the contents of content controls. This topic in Office Online provides more information on content controls.
In an upcoming post, I’m going to show how you can write a small test harness to test code ...
-
This post presents a custom application page in SharePoint that uses Open XML, the Open XML SDK and LINQ to XML to accept revisions, remove comments, and remove personal information from an Open XML word processing document.
The following 45 second screen-cast demonstrates the code presented in this post.Video: Using Open XML with SharePoint ...
-
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 ...
-
This post presents some code to remove personal information from an Open XML word processing document.
Note: this post contains interesting information for LINQ to XML developers even if you are not interested in removing personal information from a document. It demonstrates some easy ways to write robust code in LINQ to XML that behaves ...
-
In this post, I present some code that uses the Open XML SDK and LINQ to XML to accept all revisions in an Open XML word processing document.
So, for example, if we have this document:
And we run this code, the document then looks like this:
The main part of the work when accepting revisions is to delete a bunch of nodes, however, ...
-
This is a fun, geeky post for those interested in functional programming.
Sometimes you have flat data where there is hierarchy expressed in the data, but the form of the data is flat. You may need to transform this data into a hierarchy, such as an XML tree.
For instance, you may have the following data:
Heading[] headings = new[] ...
-
In this post, I’m presenting some code that uses the Open XML SDK and LINQ to XML to query an Open XML document. I’ve posted on this before, but this version is cleaner and smaller. It also is an example of code written in the functional style.
The most common need is to retrieve the paragraphs of a word processing ...
1
|
|
|