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

RE: SQL Schema to XML Schema generator [any out there?]

  • From: "Bullard, Claude L (Len)" <clbullar@i...>
  • To: xml-dev@x...
  • Date: Fri, 23 Jun 2000 15:24:01 -0500

sql schema dump
By the way, just as an addendum.  When you use 
tools that enable you to generate schemas from 
say, relational dbs, tools that reverse engineer 
instances can only get you so far.  For example, 
XML-Spy has a great feature for doing this using 
ODBC to connect and get you the table layouts. 
However, if a table has no data, it can't, of course, 
generate that so it doesn't kick out an instance.  
So when you try to generate a schema, you are stuck.

1.  Use a test database with sufficient data to 
generate the instance.  Otherwise, it can't 
do anything for that table.

2.  Remember that this still won't find key 
relationships (primary/foreign).

3.  It won't detect duplicates for leaf types 
that may be shared across tables.  This is a
namespace design decision (tables vs the whole 
enchilada in one tree).

4.  It makes a good guess about your datatypes, 
but for example, where you may have a string 
datatype, but in reality, it is an enumeration 
(say, a list of states, state codes, etc), you 
have to find these and choose your means of 
defining these (eg, attribute or elements).

5.  It can't really do much about the cardinality 
or sequencing.  Roughly, these are the required 
fields a forms demands be entered and filled 
before you can save a record (integrity constraints).

In other words, it can't find what you 
are handling semantically in code although 
there are other sources (eg, making the forms 
dump out information to detect required fields).

If you generate your current relational 
schema documents from a database (say into 
HTML tables for publication), you may want to 
explore using that as a source since it may 
have description fields in it that can be 
automatically inserted into the new schema 
and may contain keywords in the description 
that you can use to mark constructs for later 
inspection and adjustment.

Len Bullard
Intergraph Public Safety
clbullar@i...
http://fly.hiwaay.net/~cbullard/lensongs.ram

Ekam sat.h, Vipraah bahudhaa vadanti.
Daamyata. Datta. Dayadhvam.h

***************************************************************************
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.