'Parameters
file : writable file-like object.'

def __init__(self, file):

    self.write = file.write
    if hasattr(file, u'flush'):
        self.flush = file.flush
    self._open = 0
    self._tags = []
    self._data = []
    self._indentation = (u'    ' * 64)
    self.xml_escape_cdata = xml_escape_cdata
    self.xml_escape = xml_escape
