Wordprocessing Document
The <w:document> element is the root element of the main content part.
<w:document>
<w:body>
<w:p/>
</w:body>
</w:document>
Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference §§ 17.2.3.
Elements:
The <w:document> element can contain the elements below.
| Element | Description |
|---|---|
| background | Specifies the background for every page of the document. The background can be either an DrawingML object or a sold color. If it is a DrawingML object, then the background element contains a drawing element. If a solid color is used, then background is an empty element, with the color specified in the following attributes. |
| body | Specifies the contents of the body of the document. It has no attributes. It can contain a number of elements, most related to tracking changes and adding customer XML. The core elements are listed below. Elements: |
Attributes:
<w:document> has a single attribute:
| Attribute | Description |
|---|---|
| conformance | Specifies the conformance class to which the document conforms. Possible values are: * strict - the document conforms to Office Open XML Strict * transitional - the document conforms to Office Open XML Transitional. This is the default value. |
Related HTML element:
<html>
<head>
...
</head>
<body>
...
</body>
</html>