youtube image
From YouTube: Use Linq to XML in Office.js Add-ins

Description

To support Office.js Add-ins, presenter Thomas Barnekow has developed two TypeScript libraries (linq-to-xml and linq-to-ooxml) to handle Open XML markup. In this 21-minute Developer-focused demo see how the code enables pure functional transformations of Office Open XML documents in Office.js Add-ins. In the Linq samples shown, see how to use capabilities from the libraries to transform a Word document that contains a massive number of content controls. The Add-in removes all direct formatting, while retaining all paragraph and character styles. This PnP Community demo is taken from the Office Add-ins community call – August 2022, recorded on August 10, 2022.

Demo Presenter
• Thomas Barnekow, Senior Principal Architect (Analog Devices)

Supporting documents
• Repo – OpenXmlDev / linq-to-xml | https://github.com/OpenXmlDev/linq-to-xml
• npm - LINQ to XML for TypeScript | https://www.npmjs.com/package/@openxmldev/linq-to-xml
• Repo – OpenXmlDev / linq-to-ooxml | https://github.com/OpenXmlDev/linq-to-ooxml
• npm - OOXML Namespace-Related Classes for LINQ to XML for TypeScript | https://www.npmjs.com/package/@openxmldev/linq-to-ooxml
• Sample – OpenXmlDev / linq-add-in | https://github.com/OpenXmlDev/linq-add-in

Learn more
• Microsoft 365 Unified Sample gallery - https://aka.ms/m365/samples
• Microsoft 365 Platform Community in YouTube - https://aka.ms/m365/videos
• Microsoft 365 Platform Community - http://aka.ms/m365/community