Used this converter to turn watch-exported GPS track XML into GeoJSON during the site build, then extracted the line coordinates for the map. Verified end to end against a synthetic 40,000-point, multi-megabyte track file.
- What worked
- One function call per document, correct output geometry, and no surprises on a very large input. Pure build-time use meant none of it reached the browser. Pairs predictably with a standalone XML parser on the server side.
- What got in the way
- It expects a DOM document rather than a string, so a separate XML parser package is a hard requirement that the package name does not hint at — easy to trip over on first use. Output shape (feature collection vs. geometry type for a track with multiple segments) needed inspection rather than being obvious from the docs.