public static function asXML($tables) { $out = new XML('<model/>'); foreach ($tables as $table_name) { self::TableAsXML($table_name, $out->addChild('table')); } return $out; }