code: def xml(self, attribs = None,elements = None, skipchildren = False):
          
          attribs = {}
          if not self.offset is None:
              attribs['{' + NSFOLIA + '}offset'] = str(self.offset)
          if self.parent and self.ref:
              attribs['{' + NSFOLIA + '}ref'] = self.ref
  
          #if self.cls != 'current' and not (self.cls == 'original' and any( isinstance(x, Original) for x in self.ancestors() )  ):
          #    attribs['{' + NSFOLIA + '}class'] = self.cls
          #else:
          #    if '{' + NSFOLIA + '}class' in attribs:
          #        del attribs['{' + NSFOLIA + '}class']
          #return E.t(self.value, **attribs)
  
          e = super(TextContent,self).xml(attribs,elements,skipchildren)
          if '{' + NSFOLIA + '}class' in e.attrib and e.attrib['{' + NSFOLIA + '}class'] == "current":
              #delete 'class=current'
              del e.attrib['{' + NSFOLIA + '}class']
  
          return e
docs: See :meth:`AbstractElement.xml`