def METHOD_NAME(self, tag, attributes=[]):
    # Write an empty XML tag with optional attributes.
    for key, value in attributes:
        value = self._escape_attributes(value)
        tag += ' %s="%s"' % (key, value)
    self.fh.write("<%s/>" % tag)