code: def xml(self, attribs = None,elements = None, skipchildren = False):
          
          if not attribs: attribs = {}
          if self.idref:
              attribs['id'] = self.idref
          return super(AbstractTextMarkup,self).xml(attribs,elements, skipchildren)
docs: See :meth:`AbstractElement.xml`