The Basics of Schemas

When you're working with databases, there are two primary perspectives to use when working with the data. The first is the syntactic approach, which is a description of the data's structure. A schema used to describe the structure of the data is known as a syntactic schema. The other approach is to examine the concepts and relationships between the data. The schema to describe this is known as a conceptual schema, and XML-Data can be used to describe schemas of both types.

Since you're using XML to construct the schemas, the basic structure of a schema is that of an XML file. This is demonstrated in the following code:

 <? xml version="1.0" ?> <Schema name="NameOfSchema" xmlns="urn:schemas-microsoft-com:xml-data"> <!--body ...

Get Sams Teach Yourself XML in 24 Hours 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.