XSD TopoGrafix · 1.1

GPX 1.1

GPS Exchange Format

Waypoints, routes and tracks exported by GPS devices, sports watches and mapping apps.

About

GPX is the common exchange format for GPS data: Garmin, Strava, Komoot, OsmAnd and most mapping tools read and write it.

Good to know

  • Vendor extensions (for example Garmin TrackPointExtension) live in their own namespaces inside <extensions> and are accepted without being checked.

Files

1 file · 25.3 KB

Example document

track.gpx · 711 B · valid against this schema

In CI and from code

The same schema by its name, gpx-1.1, through the API.

npx @xmlvalid/cli validate "**/*.xml" --schema gpx-1.1
- uses: xmlvalid/validate-action@v1
  with:
    files: "**/*.xml"
    schema: gpx-1.1
    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=gpx-1.1

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