Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 4A1B3475BC3 for ; Sun, 26 May 2002 06:05:47 -0400 (EDT) Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by postgresql.org (Postfix) with ESMTP id 92325475BAA for ; Sun, 26 May 2002 06:05:43 -0400 (EDT) Received: from julian ([80.2.246.217]) by mta06-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with SMTP id <20020526100545.BKSP4119.mta06-svc.ntlworld.com@julian> for ; Sun, 26 May 2002 11:05:45 +0100 Message-ID: <031d01c2049d$93e489c0$0500a8c0@julian> From: "Julian Scarfe" To: Subject: XSD to Postgresql SQL Date: Sun, 26 May 2002 11:10:35 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Archive-Number: 200205/273 X-Sequence-Number: 7908 I have a big and complicated XML Schema (1.0, W3C standard XSD), which I'd like use to generate schema for a Postgresql database. I'm not able to change the XSD, it's a standard in itself, and I believe most previous mapping has been with Oracle databases. Are there standard tools for performing such a conversion? I appreciate that the SQL generated may not be unique and it may require some manual tweaking. I've looked briefly at Torque, which seems to use its own schema for DB description, and at Castor, which seems complicated and requires me to go through JDO and java source code generation -- perhaps I'll have to do that anyway for the programmatic aspects. My current methods of population and retrieval for similar databases use Perl and the DBI/DBD::Pg. Any pointers would be appreciated, and please tell me if I'm asking the wrong question or missing the point of Castor or Torque! Thanks Julian Scarfe