Text
The most common run content is the <t>
element, which is the container for the text that makes up the document's content. A <t >
element can contain an arbitrary amount of text, up to and including the entire document's contents. However, typically, long runs of text are broken up into paragraphs and strings of text having different formats, or are interrupted by line breaks, graphics, tables, and other items. A <t >
element must be enclosed within an <r >
element; i.e., a run of text. An <r >
element can contain multiple <t >
elements, interspersed among other elements.
Aside from the <t>
element, there are three types of text in WordprocessingML:
<delText>
- Deleted text<instrText>
- Field codes<delInstrText>
- Deleted field codes
These four types of text are defined using unique elements in WordprocessingML so that simple consumers can determine the text of the document simply by grabbing the contents of the <t>
node, without needing to check where revisions start and end, etc. to determine the state of the text contents.
It is also notable that these are the only elements in a WordprocessingML document's main document part that can contain a XML text node.