3 �h>`P? � @ s d dl mZ dddddddd d ddd dg Zd dlZd dlT d dlZd dlZd dlmZ d dl T d dl T d dlmZm Z edd�Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd � Zdd� Zdd � Zdd� Zd d � ZG d!d"� d"e�Zee�G d#d� de��ZdS )$� )�absolute_import�string_to_xmlnode�string_to_cdata_xmlnode�validate_database_doc�boolean�xml_attributes�xml_attribute_dict�xml_child_elements_iter�xml_child_elements�xml_get_child_element_by_name�xml_get_child_elements_by_name�xml_child_element_names�xml_has_child_elements�XmlSerializeN)�*)� get_config)� add_metaclass�string_typesZgeneral� i18n_encodingc C sZ | d krt d� dS | j� }|d kr0t d� dS |jd�}|d krNt d� dS t|�S d S )Nz3validate_database_doc: doc is empty, validate failsFz4validate_database_doc: root is empty, validate fails�versionz7validate_database_doc: version is empty, validate fails)� log_debug�getRootElement�propZdatabase_version_compatible)�doc� root_noder � r �#/usr/lib/python3.6/xml_serialize.pyr >