Working with XML Schemas—The XSD File

As mentioned previously, an XML schema document, known as the XSD file, defines the data stored in an XML document. Using an XSD file, you can supply the schema information for the data in the XML document. The following is the XML schema file generated for the Shippers table.

 <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" xmlns:od="urn:schemas-microsoft-com:officedata"> <xsd:element name="dataroot"> <xsd:complexType> <xsd:choice maxOccurs="unbounded"> <xsd:element ref="Shippers"/> </xsd:choice> </xsd:complexType> </xsd:element> <xsd:element name="Shippers"> <xsd:annotation> <xsd:appinfo> <od:index index-name="PrimaryKey" index-key="ShipperID " primary="yes" ...

Get Alison Balter's Mastering Access 2002 Enterprise Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.