Using XDR Schema Data Types

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - XML Schemas

Using XDR Schema Data Types

In an XML-Data Reduced (XDR) schema, you can specify the data types of elements and attributes. In addition to supporting the attribute types found in a document type definition (DTD), the XDR schema provides support for a range of data types.

The data types indicate the format of the data and enable processing specific to that data type in the XML Document Object Model (DOM). Also, the XML parser uses the data type information for validation of the type.

To specify data types in the XDR schema, the schema must include the data type namespace, urn:schemas-microsoft-com:datatypes.

Following is the minimum XDR schema with the namespace declarations.

<?xml version="1.0" ?>
<Schema name="MySchema" xmlns="urn:schemas-microsoft-com:xml-data"
                        xmlns:dt="urn:schemas-microsoft-com:datatypes" >
    …
</Schema>

For a list of the data types supported in XDR schemas, see XDR Schema Data Types.