Share via


wordDocument element [Word 2003 XML Reference] --  Microsoft Office Word 2003 XML Software Development Kit

wordDocument element [Word 2003 XML Reference]

Represents the root element for the document.

Usage

<wordDocument
    macrosPresent="yesNoType"
    embeddedObjPresent="yesNoType"
    ocxPresent="yesNoType"
    xml:space="[external type]"
/>

Element Information

Element type wordDocumentElt
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:element name="wordDocument" type="wordDocumentElt" >
</xsd:element>

©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