code: def xml(self, indent=4, **kwargs):
          
          writer = StringIO()
          self.write(writer, indent=indent, **kwargs)
          return writer.getvalue()
docs: :return: this node as XML text.
  
          Delegates to :meth:`write`