'Write the header'

def writeHeader(self):

    self._output_file.write('\n'.join(['<?xml    version="1.0"    encoding="UTF-8"?>', '<!DOCTYPE    root    PUBLIC    "dsml.dtd"    "http://www.dsml.org/1.0/dsml.dtd">', '<dsml:dsml    xmlns:dsml="http://www.dsml.org/DSML">', ('%s<dsml:directory-entries>\n' % self._indent)]))
    if self._dsml_comment:
        self._output_file.write(('%s<!--\n' % self._indent))
        self._output_file.write(('%s%s\n' % (self._indent, self._dsml_comment)))
        self._output_file.write(('%s-->\n' % self._indent))
