Read Garmin XML (TCX) files in Python...

Diez B. Roggisch deets at
Sun Mar 29 20:10:16 CEST 2009

cmalmqui schrieb:
> Dear All,
> Garmin uses XML as an exchange format for their Forerunner GPS series
> ( and I have been thinking
> about creating a python script that parses the Garmin XML file and
> dumps the training information to a KML file as well as various graphs
> (png or maybe SVG).
> I am however struggling when I try to access the XML file in python. I
> normally use python to create rather simple "top down" scripts (from a
> Matlab background) and I have not been able to find a tutorial giving
> me a gentle introduction to XML parsing with python. Right now I am
> doubting whether XML + Python is achievable for a python novice.
> I would thus be grateful if somebody could point me in the right
> direction, either with some code suggestions or linking to some good
> tutorials on the web, before I drop this idea and move on :-)

Elementtree is since python2.5 part of the standard lib. You can simply 
translate the examples adjusting the imports.


More information about the Python-list mailing list