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')
def toxml(value): return pyfo.pyfo(value, pretty=True, prolog=True)
def get_text(self, c): result = pyfo(self.__build_gpx(c), pretty=True, prolog=True, encoding='utf-8') return result.encode('utf8', 'xmlcharrefreplace')