Ejemplo n.º 1
0
    def toxml(self):
##         s=u""
##         def wr(x):
##             s.__add__(x)
##         self.__xml__(wr)
##         return s
        u=UniStringIO()
##         from cStringIO import StringIO
##         b=StringIO()
##         def wr(s):
##             b.write(s.encode("utf-8"))
##         self.__xml__(wr)
        self.__xml__(u.write)
        return u.getvalue()
Ejemplo n.º 2
0
 def toxml(self):
     u = UniStringIO()
     self.__xml__(u.write)
     return u.getvalue()
Ejemplo n.º 3
0
 def toxml(self):
     u=UniStringIO()
     self.__xml__(u.write)
     return u.getvalue()