def __call__(self, d):

        #pyfo do not work properly.
        return "xml", pyfo.pyfo(d, pretty=True,
                                prolog=True, 
                                encoding='UTF-8'
                                ).encode('UTF-8', 'xmlcharrefreplace')
Exemple #2
0
def toxml(value):
	return pyfo.pyfo(value, pretty=True, prolog=True)	
Exemple #3
0
 def get_text(self, c):
     result = pyfo(self.__build_gpx(c), pretty=True, prolog=True, encoding='utf-8')
     return result.encode('utf8', 'xmlcharrefreplace')
Exemple #4
0
 def get_text(self, c):
     result = pyfo(self.__build_gpx(c),
                   pretty=True,
                   prolog=True,
                   encoding='utf-8')
     return result.encode('utf8', 'xmlcharrefreplace')
def toxml(value):
    return pyfo.pyfo(value, pretty=True, prolog=True)