Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


What comes first, the schema or the document

From: Lyallex <lyallex@-----.--->
To: xmlschema-dev@--.---
Date: 7/11/2008 10:42:00 AM
Hi

Now obviously I'm a beginner, I'm currently engrossed in
http://www.w3.org/TR/xmlschema-0/

I have written a (very) simple validator using classes from the Java
jdk1.5.0_15 and I'm using this to play around with the examples in
that document.

I'm doing this because there may/will be a requirement to write xml
for my current project.

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

I've started developing an xml document, then I will develop a schema
that can be used to validate this document.
Is this a sensible approach or do people usually do it the other way around ?

Is it reasonable to simply present a client with a schema and say
'your xml must comply with this' or is it better to give them an
example xml document and the schema to go with it so that they can see
what is required and also have the ability to validate the document
before transmitting it to us.

Apologies if these questions are too basic for the experts, if this is
not the place to ask such questions then rather than shout at me would
you be so kind as to redirect me to the appropriate list ?

many thanks

lyallex


From mark@a... Fri Jul 11 22:21:07 2008
Received: from farnsworth.w3.org ([128.30.52


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