Modeling Data with XML Schemas

XML Schema is a new approach to defining the schema for XML documents that uses an XML vocabulary called XML-Data. As of this writing, XML-Data is at the working draft stage in the W3C, which means that a formal recommendation will hopefully follow soon. Microsoft was eager to offer an alternative to DTDs and decided to support a subset of the XML-Data working draft in Internet Explorer 5.0. This subset of XML-Data is what Microsoft is calling XML Schema.

An XML Schema is very similar in purpose to a DTD, in that it is used to establish the schema of a class of XML documents. Like DTDs, XML Schemas describe elements and their content models so that documents can be validated. However, XML Schemas go several steps ...

Get XML Unleashed 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.