def ToXml(self): return (u'<gd:im protocol=%s address=%s />' % (saxutils.quoteattr(self.protocol), saxutils.quoteattr(self.address)))