simpleFieldType complexType [Word 2003 XML Reference] --  Microsoft Office Word 2003 XML Software Development Kit

simpleFieldType complexType [Word 2003 XML Reference]

Defines a field in the document.

Type Information

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

Elements and Attributes

Child Elements

Element Description
fldData Represents field data.
r Represents the run element. This is the leaf container for data in a Word document -- text, pictures, and so on.
fldSimple Represents simple Word field (with plain text instructions). These fields are run-time calculated entities in Word (for example, page numbers).
hlink 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

<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>

©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