private Element generateTableJustInBase(Document doc, TableInfo tbl) throws ParserConfigurationException {

        /** Пример того что должно получится на выходе
         * <Table place="base">
         *  <sTableName>CMS_WF_STATUS</sTableName>
         *  <sOwner>
         *      <file></file>
         *      <base>CRM_DAILY</base>
         *      <state>diff</state>
         *  </sOwner>
         *  <sStatus>
         *      <file></file>
         *      <base>VALID</base>
         *      <state>diff</state>
         *  </sStatus>
         *  <sPartitioned>
         *      <file></file>
         *      <base>NO</base>
         *      <state>diff</state>
         *  </sPartitioned>
         *  <sTemporary>
         *      <file></file>
         *      <base>N</base>
         *      <state>diff</state>
         *  </sTemporary>
         *  <sCompression>
         *      <file></file>
         *      <base>DISABLED</base>
         *      <state>diff</state>
         *  </sCompression>
         *  <sLogging>
         *      <file></file>
         *      <base>YES</base>
         *      <state>diff</state>
         *  </sLogging>
         *  <sCache>
         *      <file></file>
         *      <base>N</base>
         *      <state>diff</state>
         *  </sCache>
         *  <sTableLock>
         *      <file></file>
         *      <base>ENABLED</base>
         *      <state>diff</state>
         *  </sTableLock>
         *  <Columns>
         *      <Column></Column>
         *  </Columns>
         * </Table>
         */


        Element tableElement = doc.createElement("Table");
        tableElement.setAttribute("place", "base");
        // Эта часть строит информацю  о таблице
        // Name
        Element sTblTableName = doc.createElement("sTableName");
        sTblTableName.appendChild(doc.createTextNode(tbl.name));
        tableElement.appendChild(sTblTableName);

        // owner
        Element sTblOwner = doc.createElement("sOwner");
        tableElement.appendChild(sTblOwner);
        Element sTblOwnerFile = doc.createElement("base");
        sTblOwnerFile.appendChild(doc.createTextNode(tbl.owner));
        sTblOwner.appendChild(sTblOwnerFile);
        sTblOwner.appendChild(doc.createElement("file"));
        Element sTblOwnerState = doc.createElement("state");
        sTblOwnerState.appendChild(doc.createTextNode("diff"));
        sTblOwner.appendChild(sTblOwnerState);

        // Status
        Element sTblStatus = doc.createElement("sStatus");
        tableElement.appendChild(sTblStatus);
        Element sTblStatusFile = doc.createElement("base");
        if (tbl.status != null)
            sTblStatusFile.appendChild(doc.createTextNode(tbl.status));
        sTblStatus.appendChild(sTblStatusFile);
        sTblStatus.appendChild(doc.createElement("file"));
        Element sTblStatusState = doc.createElement("state");
        sTblStatusState.appendChild(doc.createTextNode("diff"));
        sTblStatus.appendChild(sTblStatusState);

        // Partitioned
        Element sTblPartitioned = doc.createElement("sPartitioned");
        tableElement.appendChild(sTblPartitioned);
        Element sTblPartitionedFile = doc.createElement("base");
        if (tbl.partitioned != null)
            sTblPartitionedFile.appendChild(doc.createTextNode(tbl.partitioned));
        sTblPartitioned.appendChild(sTblPartitionedFile);
        sTblPartitioned.appendChild(doc.createElement("file"));
        Element sTblPartitionedState = doc.createElement("state");
        sTblPartitionedState.appendChild(doc.createTextNode("diff"));
        sTblPartitioned.appendChild(sTblPartitionedState);

        // Temporary
        Element sTblTemporary = doc.createElement("sTemporary");
        tableElement.appendChild(sTblTemporary);
        Element sTblTemporaryFile = doc.createElement("base");
        if (tbl.temporary != null)
            sTblTemporaryFile.appendChild(doc.createTextNode(tbl.temporary));
        sTblTemporary.appendChild(sTblTemporaryFile);
        sTblTemporary.appendChild(doc.createElement("file"));
        Element sTblTemporaryState = doc.createElement("state");
        sTblTemporaryState.appendChild(doc.createTextNode("diff"));
        sTblTemporary.appendChild(sTblTemporaryState);

        // Compression
        Element sTblCompression = doc.createElement("sCompression");
        tableElement.appendChild(sTblCompression);
        Element sTblCompressionFile = doc.createElement("base");
        if (tbl.compression != null)
            sTblCompressionFile.appendChild(doc.createTextNode(tbl.compression));
        sTblCompression.appendChild(sTblCompressionFile);
        sTblCompression.appendChild(doc.createElement("file"));
        Element sTblCompressionState = doc.createElement("state");
        sTblCompressionState.appendChild(doc.createTextNode("diff"));
        sTblCompression.appendChild(sTblCompressionState);

        // logging
        Element sTblLogging = doc.createElement("sLogging");
        tableElement.appendChild(sTblLogging);
        Element sTblLoggingFile = doc.createElement("base");
        if (tbl.logging != null)
            sTblLoggingFile.appendChild(doc.createTextNode(tbl.logging));
        sTblLogging.appendChild(sTblLoggingFile);
        sTblLogging.appendChild(doc.createElement("file"));
        Element sTblLoggingState = doc.createElement("state");
        sTblLoggingState.appendChild(doc.createTextNode("diff"));
        sTblLogging.appendChild(sTblLoggingState);

        // cache
        Element sTblCache = doc.createElement("sCache");
        tableElement.appendChild(sTblCache);
        Element sTblCacheFile = doc.createElement("base");
        if (tbl.cache != null)
            sTblCacheFile.appendChild(doc.createTextNode(tbl.cache));
        sTblCache.appendChild(sTblCacheFile);
        sTblCache.appendChild(doc.createElement("file"));
        Element sTblCacheState = doc.createElement("state");
        sTblCacheState.appendChild(doc.createTextNode("diff"));
        sTblCache.appendChild(sTblCacheState);

        // table_lock
        Element sTblTableLock = doc.createElement("sTableLock");
        tableElement.appendChild(sTblTableLock);
        Element sTblTableLockFile = doc.createElement("base");
        if (tbl.table_lock != null)
            sTblTableLockFile.appendChild(doc.createTextNode(tbl.table_lock));
        sTblTableLock.appendChild(sTblTableLockFile);
        sTblTableLock.appendChild(doc.createElement("file"));
        Element sTblTableLockState = doc.createElement("state");
        sTblTableLockState.appendChild(doc.createTextNode("diff"));
        sTblTableLock.appendChild(sTblTableLockState);

        // Теперь сюда надо добавить информацию по колонкам этой таблицы.
        //
        Element columnsElement = doc.createElement("Columns");
        tableElement.appendChild(columnsElement);

        for (ColumnInfo col : tbl.columnInfoArrayList) {
            // Эта часть строит информацю о колонках
            columnsElement.appendChild(generateColumnJustInBase(doc, col));
        }
        return tableElement;
    }