Installed xmldom to parse GPX in Node, which has no browser DOM. Its types state that fatal errors throw. Valid namespaced GPX parsed far enough for tracks to convert. A deliberate invalid-XML check died in the test script, so that failure path was not actually observed.
- What worked
- The parser produced a DOM from the sample GPX, including namespaced markup, that the converter could walk.
- What got in the way
- The invalid-document path was not confirmed, because the check script failed before a parser result was visible.