Using Annotations in XDR Schemas (Deprecated in SQLXML 4.0)
This topic provides descriptions of the annotations you can use with XDR schemas, and examples of their usage.
Important
This topic is included as a reference for legacy applications. No future development work will be done on this feature. Avoid using this feature in new development work. Instead, use annotated XSD schemas to create XML views. For more information, see Introduction to Annotated XSD Schemas (SQLXML 4.0). You can convert existing annotated XDR schemas to XSD schemas. For more information, see Converting Annotated XDR Schemas to Equivalent XSD Schemas (SQLXML 4.0).
In This Section
- XDR Annotations (Deprecated in SQLXML 4.0)
Lists the XDR schema annotations.
- Default Mapping of XDR Elements and Attributes to Tables and Columns
Explains default mapping.
- Explicit Mapping of XDR Elements and Attributes to Tables and Columns
Explains explicit mapping with the sql:relation and sql:field annotations, and provides examples.
- Specifying Relationships Using sql:relationship (XDR Schema)
Describes and provides examples of the sql:relationship annotation.
- Creating Constant Elements Using sql:is-constant (XDR Schema)
Describes and provides examples of the sql:is-constant annotation.
- Excluding Schema Elements from the Resulting XML Document Using sql:map-field (XDR Schema)
Describes and provides examples of the sql:map-field annotation.
- Filtering Values by Using sql:limit-field and sql:limit-value (XDR Schema)
Describes and provides examples of the sql:limit-field and sql:limit-value annotations.
- Identifying Key Columns Using sql:key-fields (XDR Schema)
Describes and provides examples of the sql:key-fields annotation.
- Specifying a Target Namespace Using sql:target-namespace (XDR Schema)
Describes and provides examples of the sql:target-namespace annotation.
- Creating Valid ID, IDREF, and IDREFS Type Attributes Using sql:id-prefix (XDR Schema)
Describes and provides examples of the sql:ide-prefix annotation.
- Data Type Coercions (XDR Schema)
Describes how to control and coerce mapping between XDR data types and SQL Server data types.
- Creating CDATA Sections Using sql:use-cdata (XDR Schema)
Describes and provides examples of the sql:use-cdata annotation.
- Requesting URL References to BLOB Data Using sql:url-encode (XDR Schema)
Describes and provides examples of the sql:url-encode annotation.
- Retrieving Unconsumed Data Using sql:overflow-field (XDR Schema)
Describes and provides examples of the sql:overflow-field annotation.
- Specifying Default Values for Attributes in the XDR Schema (XDR Schema)
Demonstrates how to specify default values in XDR schema for attributes.