[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: What comes first, the schema or the document

From: Michael Kay <mike@saxonica.com>
Date: Fri, 11 Jul 2008 23:34:33 +0100
To: "'Lyallex'" <lyallex@gmail.com>, <xmlschema-dev@w3.org>
Message-ID: <7DE0C142C19E4E40916BAD9C37701DF8@Sealion>
RE: What comes first

> 
> The question is, when you are 'designing' a new xml 
> document/schema which do you do first ?
> 

I think it's very common for people to start with a sample instance and then
create a schema for it. In fact, the sample instance is often a better way
of communicating the structure than the schema itself.

Of course, with some structures, particularly recursive structures, you need
a set of examples showing different aspects of the model, you can't capture
everything in one instance. But examples are always easier to understand
than the formal rules, which means that instances are easier to understand
than schemas.

Michael Kay
http://www.saxonica.com/
Received on Friday, 11 July 2008 22:35:15 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.