Hello Dave,
You can search xsd:any in the xml schemas in my last reply, and find the
items whose namespace is ##any, or ##other, or ##local. These are the
element types that we can insert our self-defined xml nodes. For example,
<xsd:any processContents="skip" namespace="##other" minOccurs="0"></xsd:any>
In
<xsd:complexType name="simpleFieldType">
<xsd:annotation>
<xsd:documentation>Defines a field in the
document.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="fldData" type="stringType" minOccurs="0"
maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Represents field data.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:choice minOccurs="1" maxOccurs="unbounded">
<xsd:element name="r" type="rElt">
<xsd:annotation>
<xsd:documentation>Represents the run element. This is the leaf
container for data in a Word document -- text, pictures, and so
on.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="fldSimple" type="simpleFieldType" minOccurs="0"
maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>Represents simple Word field (with plain
text instructions). These fields are run-time calculated entities in Word
(for example, page numbers).</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="hlink" type="hLinkType">
<xsd:annotation>
<xsd:documentation>Represents hyperlink element (analogous to
HTML <a href=...> tag).</xsd:documentation>
</xsd:annotation>
</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:annotation>
<xsd:documentation>Gets or sets instruction text for a
field.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="fldLock" type="onOffType">
<xsd:annotation>
<xsd:documentation>Gets or sets whether the field is locked from
being recalculated.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
It means that, in an element of type 'simpleFieldType', we can have a
self-defined element after the element 'fldData'.
Dave, where do you expect to add the self-defined element (an ID)? There
are very limited places that we can add this based on the schema.
Regards,
Jialiang Ge (
[email protected], remove 'online.')
Microsoft Online Community Support
=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================