From: <jb...@us...> - 2009-10-21 09:50:17
|
Revision: 372 http://pytrainer.svn.sourceforge.net/pytrainer/?rev=372&view=rev Author: jblance Date: 2009-10-21 09:50:08 +0000 (Wed, 21 Oct 2009) Log Message: ----------- Fix for XML declaration in GPX files Modified Paths: -------------- pytrainer/branches/plugins-v2/plugins/garmin-hr/garminhr.py pytrainer/branches/plugins-v2/plugins/garmin-hr-file/garminhrfile.py pytrainer/branches/plugins-v2/plugins/garmin-tcxv2/garmin-tcxv2.py Modified: pytrainer/branches/plugins-v2/plugins/garmin-hr/garminhr.py =================================================================== --- pytrainer/branches/plugins-v2/plugins/garmin-hr/garminhr.py 2009-10-21 09:22:52 UTC (rev 371) +++ pytrainer/branches/plugins-v2/plugins/garmin-hr/garminhr.py 2009-10-21 09:50:08 UTC (rev 372) @@ -148,7 +148,7 @@ xslt_doc = etree.parse(self.data_path+"/translate.xsl") transform = etree.XSLT(xslt_doc) result_tree = transform(track) - result_tree.write(gpxfile) + result_tree.write(gpxfile, xml_declaration=True) Modified: pytrainer/branches/plugins-v2/plugins/garmin-hr-file/garminhrfile.py =================================================================== --- pytrainer/branches/plugins-v2/plugins/garmin-hr-file/garminhrfile.py 2009-10-21 09:22:52 UTC (rev 371) +++ pytrainer/branches/plugins-v2/plugins/garmin-hr-file/garminhrfile.py 2009-10-21 09:50:08 UTC (rev 372) @@ -105,5 +105,5 @@ xslt_doc = etree.parse(self.data_path+"/translate.xsl") transform = etree.XSLT(xslt_doc) result_tree = transform(track) - result_tree.write(gpxfile) + result_tree.write(gpxfile, xml_declaration=True) Modified: pytrainer/branches/plugins-v2/plugins/garmin-tcxv2/garmin-tcxv2.py =================================================================== --- pytrainer/branches/plugins-v2/plugins/garmin-tcxv2/garmin-tcxv2.py 2009-10-21 09:22:52 UTC (rev 371) +++ pytrainer/branches/plugins-v2/plugins/garmin-tcxv2/garmin-tcxv2.py 2009-10-21 09:50:08 UTC (rev 372) @@ -86,5 +86,5 @@ transform = etree.XSLT(xslt_doc) xml_doc = etree.parse(filename) result_tree = transform(xml_doc) - result_tree.write(gpxfile) + result_tree.write(gpxfile, xml_declaration=True) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |