Defines a field in the document.

Type Information

Namespace http://schemas.microsoft.com/office/word/2003/wordml
Schema name wordnet

Elements and Attributes

Child Elements

Element Type Description
fldData stringType Represents field data.
r rElt Represents the run element. This is the leaf container for data in a Word document -- text, pictures, and so on.
fldSimple simpleFieldType Represents simple Word field (with plain text instructions). These fields are run-time calculated entities in Word (for example, page numbers).
hlink hLinkType Represents hyperlink element (analogous to HTML <a href=...> tag).

Attributes

Attribute Type Required Description Possible Values
instr stringType required Gets or sets instruction text for a field.
fldLock onOffType optional Gets or sets whether the field is locked from being recalculated.
  • on
  • off

Definition

XML

<xsd:complexType name="simpleFieldType" ">
    
    <xsd:sequence>
      <xsd:element name="fldData" type="stringType" minOccurs="0" maxOccurs="1">
        
      </xsd:element>
      <xsd:choice minOccurs="1" maxOccurs="unbounded">
        <xsd:element name="r" type="rElt">
          
        </xsd:element>
        <xsd:element name="fldSimple" type="simpleFieldType" minOccurs="0" maxOccurs="unbounded">
          
        </xsd:element>
        <xsd:element name="hlink" type="hLinkType">
          
        </xsd:element>
        <xsd:group ref="runLevelElts"></xsd:group>
        <xsd:any processContents="skip" namespace="##other" minOccurs="0"></xsd:any>
      </xsd:choice>
    </xsd:sequence>
    <xsd:attribute name="instr" type="stringType" use="required">
      
    </xsd:attribute>
    <xsd:attribute name="fldLock" type="onOffType">
      
    </xsd:attribute>
  </xsd:complexType>

©2006 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/odcXMLRefLegalNotice12.asp