Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » LINQ to XML   (RSS)
Transforming Open XML Word-Processing Documents to Html (Post #3)
[Blog Map] (Update Nov 11, 2009 : This is the 3rd in a series of posts ( #1 , #2 , #3 , #4 , #5 , #6 ) on doing a transform of WordprocessingML to XHtml.) Over the last couple of weeks, and over the next week, I've been designing and writing some code Read More...
Transforming Open XML Word-Processing Documents to XHtml (Post #2)
[Blog Map] (Update Nov 11, 2009 : This is the 2nd in a series of posts ( #1 , #2 , #3 , #4 , #5 , #6 ) on doing a transform of WordprocessingML to XHtml.) Last week, I blogged about a small project that I'm embarking on: to make a reasonably accurate Read More...
Generating Documents from SharePoint Lists using Open XML Content Controls
[Blog Map] It's often the case that a department manager needs to regularly send a nicely formatted status report to her general manager or that a team leader needs to send a weekly status report to a number of interested parties. To collaborate with Read More...
Transforming Open XML Word-Processing Documents to XHtml
[Blog Map] (Update Nov 11, 2009 : This is the 1st in a series of posts ( #1 , #2 , #3 , #4 , #5 , #6 ) on doing a transform of WordprocessingML to XHtml.) Over the next couple of weeks, I'm going to spend some time writing some LINQ to XML code to transform Read More...
DescendantsAndSelfTrimmed LINQ to XML Axis Method
[Blog Map] There are some circumstances where I need a variation on the DescendantsAndSelf axis method that allows me to specify that specific elements (and the descendants of those elements) are ‘trimmed’ from the returned collection. One of the things Read More...
XML Element and Attribute Name Guidelines
[Blog Map] Some time ago, a dev team here at Microsoft asked me to review their XML vocabulary that they had designed. They wanted to know if the element and attribute names in their vocabulary design were good ones. Note: I suspect that this is one of Read More...
Update to CommentMerger.MergeComments Method
Word 2007 has a feature where you can lock a document, preventing any changes to content, yet allowing the user to add comments. CommentMerger is a small method (~400 lines of code) that merges comments from two documents into a single document, provided Read More...
Merging Comments from Multiple Open XML Documents into a Single Document
Microsoft Word 2007 allows you to lock a document, prohibiting users from making changes to content, while allowing them to add comments. If we have multiple documents that have the same content yet different comments, we can merge those comments into Read More...
Recursive Approach to Pure Functional Transformations of XML
[Blog Map] Writing pure functional transformations a in a recursive style enables us to put together interesting transformations in a very small amount of code. Using some specific techniques that allow us to write this code very concisely, this approach Read More...
Document-Centric Transforms using LINQ to XML
[Blog Map] When thought of in a certain way, XML documents come in two flavors – data-centric and document-centric. Further, there are two types of document-centric documents. This post presents my thoughts about approaches to various types of document-centric Read More...
Empty Elements and Self-Closing Tags
Last January, I blogged about an approach to normalizing LINQ to XML trees . That post is based on another post, Manually Cloning LINQ to XML Trees . In those posts, my code to clone an element would clone a self-closing element (<Tag/>) as self-closing, Read More...
Comparing Two Open XML Documents using the Zip Extension Method
[BlogMap] (Note: this is a post on comparing two Open XML word processing documents. For a post on comparing two XML documents, see Equality Semantics of LINQ to XML Trees .) Sometimes we want to compare two word processing documents to see if they contain Read More...
Splitting Runs in Open XML Word Processing Document Paragraphs
[Blog Map] (July 1, 2009 - Updated TransformRun to be recursive) In Open XML Word processing document markup, paragraphs contain runs, and runs contain text elements. Sometimes when transforming a document, we may want to split runs differently than in Read More...
Querying LINQ to XML Nodes in Reverse Document Order with Better Performance
[Blog Map] (Update June 25, 2009 - fixed bugs in event handlers associated with deleting last node and inserting node at beginning of list) Occasionally I need to query LINQ to XML nodes in reverse document order. I’m currently writing some LINQ to XML Read More...
Working with Optional Elements and Attributes in LINQ to XML Queries
Often XML schemas allow for optional elements and attributes. When you write queries on these elements or attributes, you may be tempted to write code that does lots of testing for null. There is a better way to do this, laid out in this post. I covered Read More...
More Posts Next page »
Page view tracker