title: How to generate change log file in liquibase using Java
body: <p>I want to generate a change log XML file in liquibase using Java, which stores the information of two databases difference.</p>
  
  <p>My code is:</p>
  
  <pre><code>Database database=CommandLineUtils.createDatabaseObject(MySQLConnection.class.getClassLoader(), 
                  "jdbc:mysql://localhost:3306/test", "root", "admin", "com.mysql.jdbc.Driver", "", null,false,false,null,null,null,null);
  
          Database database2=CommandLineUtils.createDatabaseObject(MySQLConnection.class.getClassLoader(), 
                  "jdbc:mysql://localhost:3306/pizzashop", "root", "admin", "com.mysql.jdbc.Driver", "", null,false,false,null,null,null,null);
        CommandLineUtils.doDiffToChangeLog("changelog.xml", database2, database,new DiffOutputControl(),null,null);
  </code></pre>
  
  <p>But it generates a blank <code>changelog.xml</code> file.</p>