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

RE: DTD-to-DB SCHEMA

  • From: "Matthew Sergeant (EML)" <Matthew.Sergeant@e...>
  • To: "'Shawn Lauzon'" <lauzon@u...>, xml-dev@i..., ffarahbo@i...
  • Date: Wed, 16 Dec 1998 10:23:04 +0100

parse db schema in perl
> -----Original Message-----
> From:	Shawn Lauzon [SMTP:lauzon@u...]
> 
> FF,
> 
> I work on database persistence with schema mapping on the IBM San
> Francisco project (reusable components -- see
> www.ibm.com/Java/Sanfrancisco/).  Anyway, we're currently working on
> developing an XML interface to our schema mapping tool that allows
> users
> to update their mappings via XML documents.  It's currently in a
> somewhat-early development phase right now.
> 
> What is it specifically that you need to do?  Are there any features
> that would be useful for you?  One of the things we're looking for is
> a
> standard DTD that can describe a database table (with, for example,
> <TABLE> tags and <COLUMN> tags that would describe the tables and
> columns).  Is there anything that you know of that does this.  Thanks
> 
	It depends how complex you want to go. There are a few options
available to you. A couple of the simpler ones are WDDX, which can
describe a recordset (which you could use as a table), and RDB, which
describes tables from relational databases.

	Personally I don't like WDDX's representation of a recordset
because it's by-column, instead of by-row, so in order to get at a
particular row you have to parse the entire file. RDB is by-row, but
it's a little more verbose because of this and doesn't support data
typing.

	I have a simple perl module that creates RDB XML from a DBI data
source if you're interested, it's on CPAN called DBIx::XML_RDB, and
contains a utility for dumping complete tables to XML.

	http://www.allaire.com/developer/wddx
	http://www.w3.org/XML/RDB

	Matt.

	http://come.to/fastnet

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.