w:endnotes (Endnotes Part Root)
Root element of the endnotes.xml part, containing all endnote definitions for the document.
Child elements
Description
w:endnotes is the root element of the Endnotes part (word/endnotes.xml). It is the endnote counterpart to w:footnotes and contains all w:endnote elements — including the special separator endnotes.
It is defined in ECMA-376 Part 1 §17.11.5.
The Endnotes part is referenced from the main document part via a relationship of type http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes.
Child Elements
| Element | Description |
|---|---|
w:endnote |
A single endnote definition. |
Examples
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<w:endnotes xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
<w:endnote w:type="separator" w:id="-1">
<w:p><w:r><w:separator/></w:r></w:p>
</w:endnote>
<w:endnote w:type="continuationSeparator" w:id="0">
<w:p><w:r><w:continuationSeparator/></w:r></w:p>
</w:endnote>
<w:endnote w:id="1">
<w:p>
<w:r><w:endnoteRef/></w:r>
<w:r><w:t xml:space="preserve"> Endnote text here.</w:t></w:r>
</w:p>
</w:endnote>
</w:endnotes>
using DocumentFormat.OpenXml.Packaging;
using DocumentFormat.OpenXml.Wordprocessing;
EndnotesPart endnotesPart = doc.MainDocumentPart.EndnotesPart;
Endnotes endnotes = endnotesPart.Endnotes;
Notes
- Endnotes collect at the end of the section or end of the document, depending on
w:endnotePrsettings. - The structure of
w:endnotesis parallel tow:footnotes— the same separator types and ID conventions apply.