System.Xml.Linq and Office Open XML

Starting to play with those. So just FYE, here is what I wrote yesterday: // create the new document.xml package part Uri documentUri = new Uri(“/word/document.xml”, UriKind.Relative); PackagePart documentPart = package.CreatePart(documentUri, “application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml”);   XNamespace r = “http://schemas.openxmlformats.org/officeDocument/2006/relationships”; XNamespace wp = “http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing”; XNamespace w = “http://schemas.openxmlformats.org/wordprocessingml/2006/main”; XNamespace dm = “http://schemas.openxmlformats.org/drawingml/2006/main”; XNamespace dp = “http://schemas.openxmlformats.org/drawingml/2006/picture”;   var…

3