FlatXmlDocType.write(new FlatXmlDataSet( new FileInputStream("src/xml/flatXmlTableTest.xml")), new FileOutputStream("src/dtd/flatXmlTableTest.dtd"));
IDataSet dataSet = new FlatXmlDataSet( new FileInputStream("flatXmlDataSetTest.xml"));
    public static void main(String[] args) throws Exception    {//        IDatabaseConnection connection =//                DatabaseEnvironment.getInstance().getConnection();////        String[] tableNames = connection.createDataSet().getTableNames();//        Arrays.sort(tableNames);//        FlatXmlDataSet.writeDtd(new FilteredDataSet(tableNames,//                connection.createDataSet()),//                new FileOutputStream("test.dtd"));//////        FlatXmlDataSet.write(new FilteredDataSet(tableNames,//                connection.createDataSet()),//                new FileOutputStream("test.xml"));//        //////////////////////////////////        Document document = new Document(new File("src/xml/flatXmlDataSetTest.xml"));//        DocType docType = document.getDocType();//        System.out.println(docType);////        // display children of DocType//        for (Children decls = docType.getChildren(); decls.hasMoreElements();)//        {//            Child decl = decls.next();//            String type = decl.getClass().getName();//            System.out.println("decl = " + decl + ", class: " + type);//        }        FlatXmlDocType.write(new FlatXmlDataSet(                new FileInputStream("src/xml/flatXmlTableTest.xml")),                new FileOutputStream("src/dtd/flatXmlTableTest.dtd"));    }