Open XML API Class Diagram

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The Office Open XML Package specification defines a set of XML files that contain the content and define the relationships for all of the document parts stored in a single package. These packages combine the document parts that comprise the document files for Microsoft® Office Excel® 2007, Microsoft Office PowerPoint® 2007, and Microsoft Office Word 2007. The Open XML Application Programming Interface (API) allows you to create packages and manipulate the files that comprise the packages. This topic walks through the code and steps to add a document part (file) to a Office Open XML package in Office Word 2007, although the steps are the same for each of the three 2007 Microsoft Office system programs that support the Office Open XML Format.

Open XML Application Programming Interface Class Diagram

The Open XML API has two namespaces:

  1. DocumentFormat.OpenXML

  2. DocumentFormat.OpenXML.Packaging

The following figure represents a partial class diagram of the DocumentFormat.OpenXML.Packaging namespace.

Partial OpenXml.Packaging class diagram


The Open XML Formats Class Library Reference provides documentation for the complete set of classes, interfaces, and enumerations included in the Open XML object model.