[Table of Contents] [docx version]

Shared MLs Reference Material - Math

datastoreItem (Custom XML Data Properties)

This element specifies the properties for a single custom XML part inside of an Office Open XML document. The set of properties specified within this element are attached to the custom XML part that specifies a relationship to this part.

[Example: Consider the following content for a custom XML part properties part:

<w:datastoreItem w:itemID="{A67AC88A-A164-4ADE-8889-8826CE44DE6E}">
<w:schemaRefs>
<w:schemaRef w:uri="http://www.contoso.com/exampleSchema" />
</w:schemaRefs>
</w:datastoreItem>

The datastoreItem element contains the properties for the custom XML part that referenced it; specifically, a part ID of A67AC88A-A164-4ADE-8889-8826CE44DE6E, and a single XML Schema reference to a schema with a target namespace of http://www.contoso.com/exampleSchema. end example]

Parent Elements

Root element of Shared Custom XML Data Storage Properties part

 

Child Elements

Subclause

schemaRefs (Set of Associated XML Schemas)

§7.5.2.3

 

Attributes

Description

itemID (Custom XML Data ID)

Specifies a globally unique identifier (GUID) that uniquely identifies a single custom XML part within an Office Open XML document.

 

Each itemID value shall be unique among all custom XML data parts in this document. If a document contains duplicate itemID values, then the first value should be persisted, and subsequent values should be reassigned.

 

[Example: Consider the following content for a custom XML part properties part:

 

<w:datastoreItem w:itemID="{A67AC88A-A164-4ADE-8889-
8826CE44DE6E}">

</w:datastoreItem>

 

The itemID attribute specifies that the ID associated with the parent custom XML part is A67AC88A-A164-4ADE-8889-8826CE44DE6E. end example]

 

The possible values for this attribute are defined by the ST_Guid simple type7.5.3.1).

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_DatastoreItem">

   <sequence>

   <element name="schemaRefs" type="CT_DatastoreSchemaRefs" minOccurs="0"/>

   </sequence>

   <attribute name="itemID" type="ST_Guid" use="required"/>

</complexType>