# wordDocumentElt complexType

Defines a Microsoft Office Word 2003 document.

## Type Information

Namespace | http://schemas.microsoft.com/office/word/2003/wordml
Schema name | XML Document 2003

## Elements and Attributes

### Child Elements

Element | Description
--- | ---
ignoreSubtree | Specifies whether to ignore an element and its contents. If a namespace is specified for the ignoreSubtree element's val attribute (val=uri), when Word encounters an element in this namespace, Word will ignore the element and all of its contents.
ignoreElements | Specifies whether to ignore an element, but process its contents. If a namespace is specified for the ignoreElements element's val attribute (val=uri), when Word encounters an element in this namespace, Word ignores only the element (all of the element's contents will be processed).
fonts | Represents the font definitions.
frameset | Specifies the HTML framesets in this document.
lists | Represents the list definitions (for example, the Bullets and Numbering options).
styles | Represents the style definitions.
divs | Represents the HTML DIV elements in the document.
docOleData | Represents oledata.mso store, base64 encoded. Contains storages for OLE objects.
docSuppData | Represents editdata.mso store, base64 encoded. Contains toolbar customizations, envelope data, and the Visual Basic project.
shapeDefaults | Represents the wrapper for the shape defaults.
bgPict | Represents background picture information.
docPr | Represents the document properties.
body | Contains the body of the document.
o:SmartTagType | See external namespace.
o:DocumentProperties | See external namespace.
o:CustomDocumentProperties | See external namespace.
sl:schemaLibrary | See external namespace.

### Attributes

Attribute | Type | Required | Description | Possible Values
--- | --- | --- | --- | ---
macrosPresent | yesNoType | optional | Indicates that macros are present in the document. If the macrosPresent attribute is missing or if its set to no, Word wont load a document that has a docSuppData element. This attribute is strictly enforced. | yes no
embeddedObjPresent | yesNoType | optional | Indicates that an OCX control may have been used in the document. If the embeddedObjPresent attribute is missing or if its set to no, Word wont load a document that has a docOleData element. This attribute is not, however, strictly enforced. If the attribute is present and is set to yes, but Word doesnt find a docOleData element before the body element, Word will still load the document. | yes no
ocxPresent | yesNoType | optional | Indicates that an OCX control may have been used in the document. If this file contains any OCX tags and this attribute is not present and set to yes, the file is corrupt. | yes no
xml:space | external ref | optional | See external namespace. | See external namespace.

## Definition

    <xsd:complexType name="wordDocumentElt" >
      <xsd:sequence>
        <xsd:element name="ignoreSubtree" type="stringProperty" minOccurs="0">
        </xsd:element>
        <xsd:element name="ignoreElements" type="stringProperty" minOccurs="0">
        </xsd:element>
        <xsd:element ref="o:SmartTagType" minOccurs="0" maxOccurs="unbounded">
        </xsd:element>
        <xsd:element ref="o:DocumentProperties" minOccurs="0" maxOccurs="1">
        </xsd:element>
        <xsd:element ref="o:CustomDocumentProperties" minOccurs="0" maxOccurs="1">
        </xsd:element>
        <xsd:element ref="sl:schemaLibrary" minOccurs="0" maxOccurs="1">
        </xsd:element>
        <xsd:element name="fonts" type="fontsListElt" minOccurs="0">
        </xsd:element>
        <xsd:element name="frameset" type="framesetElt" minOccurs="0">
        </xsd:element>
        <xsd:element name="lists" type="listsElt" minOccurs="0">
        </xsd:element>
        <xsd:element name="styles" type="stylesElt" minOccurs="0">
        </xsd:element>
        <xsd:element name="divs" type="divsElt" minOccurs="0">
        </xsd:element>
        <xsd:element name="docOleData" type="binDataProperty" minOccurs="0">
        </xsd:element>
        <xsd:element name="docSuppData" type="binDataProperty" minOccurs="0">
        </xsd:element>
        <xsd:element name="shapeDefaults" type="shapeDefaultsElt" minOccurs="0">
        </xsd:element>
        <xsd:element name="bgPict" type="pictureType" minOccurs="0">
        </xsd:element>
        <xsd:element name="docPr" type="docPrElt" minOccurs="0">
        </xsd:element>
        <xsd:element name="body" type="bodyElt" minOccurs="1" maxOccurs="1">
        </xsd:element>
      </xsd:sequence>
      <xsd:attribute name="macrosPresent" type="yesNoType" default="no" use="optional">
      </xsd:attribute>
      <xsd:attribute name="embeddedObjPresent" type="yesNoType" default="no" use="optional">
      </xsd:attribute>
      <xsd:attribute name="ocxPresent" type="yesNoType" default="no" use="optional">
      </xsd:attribute>
      <xsd:attribute ref="xml:space" use="optional">
      </xsd:attribute>
    </xsd:complexType>

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp