Bug#1109596: gpsprune: generates an invalid GPX file: invalid XML due to duplicate attributes

Vincent Lefevre vincent at vinc17.net
Sun Jul 20 17:32:24 BST 2025


Package: gpsprune
Version: 25.2-1
Severity: normal

When exporting to GPX, gpsprune generates an invalid GPX file:
this is invalid XML due to duplicate attributes. In particular,
viking cannot open the file due to this.

The beginning of the file is

<?xml version="1.0" encoding="UTF-8"?>
<gpx version="1.1" creator="GpsPrune v25.2 activityworkshop.net"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns="http://www.topografix.com/GPX/1/1"
 xsi:schemaLocation="http://www.topografix.com/GPX/1/1  http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd https://osmand.net  https://osmand.net/docs/technical/osmand-file-formats/osmand-gpx "
 xmlns:x="http://www.gpsessentials.com/ns/gpx-ext/1/0"
 xmlns:osmand="https://osmand.net"
 xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1"
 xmlns:osmand="https://osmand.net/docs/technical/osmand-file-formats/osmand-gpx"
 xmlns:gpxtpx="https://www8.garmin.com/xmlschemas/TrackPointExtensionv1.xsd"
>

As you can see, xmlns:osmand and xmlns:gpxtpx are duplicate
(with different values).

Fortunately, this is easy to correct after the file generation:
removing the last two attributes solves the issue for viking.

-- System Information:
Debian Release: 13.0
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-security'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.38+deb13-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gpsprune depends on:
ii  default-jre [java9-runtime]     2:1.21-76
ii  openjdk-21-jre [java9-runtime]  21.0.8+9-1

Versions of packages gpsprune recommends:
ii  gnuplot-qt [gnuplot-x11]  6.0.2+dfsg1-2+local1
ii  gpsbabel                  1.10.0+ds-1
ii  libimage-exiftool-perl    13.25+dfsg-1
ii  libjava3d-java            1.5.2+dfsg-18
ii  libjava3d-jni             1.5.2+dfsg-18
ii  libvecmath-java           1.5.2-7

gpsprune suggests no packages.

-- no debconf information

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)



More information about the Pkg-grass-devel mailing list