Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: What comes first, the schema or the document

From: "Michael Kay" <mike@--------.--->
To: "'Lyallex'" <lyallex@-----.--->, <xmlschema-dev@--.--->
Date: 7/12/2008 12:35:00 AM
> 
> 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/


From gandhi.mukul@g... Sun Jul 13 13:12:55 2008
Received


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent