writer.write(platform.query(model, "select * from "+table.getName()));
writer.write(platform.query(model, "select * from "+tables[0].getName(), tables));
    public void execute(Task task, Database model) throws BuildException    {        try        {            Platform   platform = getPlatform();            DataWriter writer   = new DataWriter(model, new FileOutputStream(_outputFile), _encoding);                        // TODO: An advanced algorithm could be employed here that writes objects            //       related by foreign keys, in the correct order            writer.writeDocumentStart();            for (int idx = 0; idx < model.getTableCount(); idx++)            {                Table table = (Table)model.getTable(idx);                writer.write(platform.query(model, "select * from "+table.getName()));            }            writer.writeDocumentEnd();        }        catch (Exception ex)        {            throw new BuildException(ex);        }    }