code: def write_xml_document(self, document):
          
          self._out.write(ET.tostring(document))
          self._out.flush()
docs: Writes a string representation of an
          ``ElementTree`` object to the output stream.
  
          :param document: An ``ElementTree`` object.