[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

docVars (Document Variables)

This element specifies the presence of document variables in a WordprocessingML. A document variable is a storage location for arbitrary customer data in name/value pairs that will be persisted in a given WordprocessingML document.

[Note: This mechanism is maintained for legacy compatibility only, and should be avoided in favor of the custom XML data support defined in this Office Open XML Standard. end note]

[Example: Consider the following WordprocessingML specifying three document variables:

<w:docVars>

<w:docVar … />
<w:docVar … />
<w:docVar … />
</w:docVars>

The docVars element contains three child elements each defining a single document variable in this document. end example]

Parent Elements

settings2.15.1.78)

 

Child Elements

Subclause

docVar (Single Document Variable)

§2.15.1.30

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_DocVars">

   <sequence>

   <element name="docVar" type="CT_DocVar" minOccurs="0" maxOccurs="unbounded"/>

   </sequence>

</complexType>