db-ddlutils-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Dudziak <tom...@gmail.com>
Subject Re: DDL to Database task: no model name?
Date Tue, 07 Feb 2006 19:59:17 GMT
On 2/7/06, Guy Davis <davis@guydavis.ca> wrote:

> Sorry to be a pain, but I need more clarification.  I reverted my
> build.xml and now here is the top of my schema.xml file:
> "http://db.apache.org/torque/dtd/database.dtd">
>    <database>

Yep, that should be fine, though you can probably simply use the
SYSTEM identifier:

<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database.dtd">

Btw, it is possible that you do not need this, but XML parsers
sometimes complain about its absence.

> Running my DdlToDatabaseTask gives me:
> C:\Development\trunk\build.xml:451: Could not read schema file
> C:\Development\trunk\schema.xml: The database model has no name

Well, DdlUtils requires you to specify the name attribute for the root
database element. Its not required in the DTD (yet), but that only
because Torque does not need it.

> Secondly, would it make sense for the writeSchemaToFile command
> to include this header automatically?  I trying for roundtrip movement
> of data and schema between development databases using DDLUtils.  As
> such, I need to automate all steps.

Nope, because for XML that includes it, this will lead to problems.


View raw message