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: how to dump a single table to xml
Date Sun, 09 Apr 2006 18:41:51 GMT
On 4/7/06, Eric Auer <eric.auer@mpi.nl> wrote:

> Hi, I noticed that you can specify:
>
> - the catalog(s)
> - the schemas(s)
> - the table TYPES
>
> but not:
>
> - the table names
>
> in the DatabaseToDdlTask. I assume
> that there is a typo in
> http://db.apache.org/ddlutils/ant-tasks.html
> and that this (and not "Same as for the
> DdlToDatabaseTask task") is the flexibility
> you get with writeDataToFile as well?
>
> What I am trying to do is to dump a single
> table from a database to some XML file.
> The structure of the table can be dumped to
> the same or a separate file. The dump of
> the data should contain only the data of one
> of the tables of the database.
>
> How can this be done through the various
> parameters of the Ant tasks? Or is it possible
> to create a special Ant task to do this?
> I would prefer to do the dump without having
> to write a custom Java program to call DdlUtils.

The easiest solution for you right now would be to filter the
generated XML for your table via XSLT (using Ant's style task).
There is also a related feature request in DdlUtils' bug tracking system:

http://issues.apache.org/jira/browse/DDLUTILS-87

Tom

Mime
View raw message