[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: Mukul Gandhi <gandhi.mukul@gmail.com>
Date: Sun, 13 Jul 2008 18:42:18 +0530
Message-ID: <7870f82e0807130612ic15ecafubaf04b35ecab8d7c@mail.gmail.com>
To: Lyallex <lyallex@gmail.com>
Cc: xmlschema-dev@w3.org
Re: What comes first

I largely agree with Mike.

XML is flexible as compared to RDBMS data. In RDBMS, we need to
specify Schema first and then put the data in database.

Whereas in XML, we can write XML instances directly and
distribute/consume them, without the need of designing Schemas.

But as a database theorist, I would like to model first and then
create the instances, so any instances we produce, should conform to
the model.

On 7/11/08, Lyallex <lyallex@gmail.com> wrote:
>
> 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


-- 
Regards,
Mukul Gandhi
Received on Sunday, 13 July 2008 13:12:55 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.