XSD
Garmin · 2
TCX v2
Garmin Training Center XML
Workout files from sports watches and fitness apps: laps, track points, heart rate and cadence.
About
TCX is the activity format of Garmin devices and Training Center, and an import and export format of Strava, TrainingPeaks and most fitness platforms. Unlike GPX it has laps, heart rate and calories built in.
Good to know
- Extensions (such as the Garmin ActivityExtension speed and power fields) are accepted without being checked, as the schema allows.
- The example is by xmlvalid.com.
Example document
run.tcx · 2 KB · valid against this schema
In CI and from code
The same schema by its name, tcx-2, through the API.
npx @xmlvalid/cli validate "**/*.xml" --schema tcx-2
- uses: xmlvalid/validate-action@v1
with:
files: "**/*.xml"
schema: tcx-2
api-key: ${{ secrets.XMLVALID_API_KEY }}
curl https://xmlvalid.com/api/v1/validations \
-H "Authorization: Bearer $XMLVALID_API_KEY" \
-F document={{ $schema->example ?? 'document.xml' }} -F schema=tcx-2
Free accounts get 100 API validations a month. On Pro, a URL monitor can check a published document against this schema every hour and email you when it breaks. More CI setups