<schemaRef> (Associated XML Schema)

This element specifies a single XML schema that is associated with the custom XML data part. This XML schema is identified using its target namespace, and may be located via any means available to an application processing the contents of this file.

If the custom XML part cannot be validated using the specified XML schema when it is opened, then this reference may be omitted when the file is subsequently saved.

example:
<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 <schemaRef> element contains a single XML Schema reference to a schema with a target namespace of http://www.contoso.com/exampleSchema. Applications may then locate and utilize a schema for this namespace using any means available. ]

Parent Elements

<schemaRefs>7.5.2.3)

Attributes

Description

<uri> (Target Namespace of Associated XML Schema)

Specifies the target namespace for the XML Schema associated with this schema reference.

<w:schemaRef w:uri="http://www.contoso.com/schema1" />
<w:schemaRef w:uri="http://www.contoso.com/schema2" />

The <uri> attribute specifies the target namespace of each XML schema reference:

  • http://www.contoso.com/schema1

  • http://www.contoso.com/schema2

Applications may then locate and utilize a schema for these namespaces using any means available. ]

The possible values for this attribute are defined by the XML Schema string datatype.

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

<complexType name="CT_DatastoreSchemaRef">
	<attribute name="uri" type="xsd:string" use="required"/>
</complexType>