Getting Started
OOXML structure, namespaces, and how to use this reference.
Work in Progress
This reference is actively being expanded. New sections, examples, and implementation notes land regularly. Check the GitHub for updates and how to contribute.
What's Different Here
The official spec is 5,000+ pages and omits critical rendering details. This reference fills the gap: live previews, implementation notes from building SuperDoc — DOCX editing and tooling, and links to 1M+ real documents from docx-corpus. Every note comes from shipping code, not reading the spec.
OOXML Structure
A .docx file is a ZIP archive containing XML files. The main content lives in word/document.xml.
document.docx/
├── [Content_Types].xml
├── _rels/
│ └── .rels
├── word/
│ ├── document.xml # Main content
│ ├── styles.xml # Style definitions
│ └── numbering.xml # List definitions
└── docProps/
└── core.xml
Namespaces
| Prefix | Namespace | Description |
|---|---|---|
| w: | WordprocessingML | Document content |
| wp: | DrawingML Positioning | Image/shape placement |
| a: | DrawingML | Graphics and shapes |
| r: | Relationships | Cross-references |