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

Re: XML Schema generation questions [was SQL schema to XML schema...]

  • From: tpassin@h...
  • To: "Mike Sharp" <msharp@l...>, <xml-dev@x...>
  • Date: Sat, 24 Jun 2000 12:49:09 -0400

sql transport schema generation
Mike Sharp  wrote, responding to a post of mine -
> <<<Therefore, it is natural - nearly mandatory - to represent a row as an
> element. >>>
>
> I suppose that if you wanted to represent the _schema_ of the database, it
would
> indeed be mandatory.  But if, rather, you were interested in the data for
it's
> own sake, you may want to represent it differently.  Relational databases
are
> limited to data in two dimensions--rows and columns.  They use the
relationships
> between tables to get the extra-dimensional aspects that real data has.
In my
> opinion, you shouldn't hamstring your XML into a two dimensional world.
Of
> course, if your goal is to simply pack the data in a database into XML for
> transport, then this approach would work.  But you need some more stuff
for the
> metadata such as this column is a foreign key into that table.

You could store the foreign key information in another table, like many
relational databases do.

>XML does providea mechanism for that, but I've never used it.
>

Yes, you are getting into the matter of where object models are stronger vs
relational models.  It's an interesting area.  I was just responding to a
question about representing tables (as I thought).  Object models for data
have a lot of useful features, but sometimes it seems like some things are
getting lost - things that have been learned painfully over the years.
Relational models are strong on letting you have new views of your data that
were not designed in at the start.  They are also strong in helping you
store a piece of data one time, in one place, which reduces update and
delete problems.

It's a great topic!

Cheers,

Tom Passin


***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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-2013 All Rights Reserved.