Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
97: Allow empty name tag in metadata r=lnicola a=jasper-bosch - [x] I agree to follow the project's [code of conduct](https://github.com/georust/geo/blob/master/CODE_OF_CONDUCT.md). - [x] I added an entry to `CHANGELOG.md` if knowledge of this change could be valuable to users. --- I ran into an error while reading GPX files from [Sports Tracker](https://www.sports-tracker.com/). Those files appear to contain an empty name tag (`<name/>`) in the metadata that results in a `NoStringContent` error: ``` <?xml version="1.0" encoding="UTF-8" standalone="no"?> <gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" creator="Sports Tracker" version="1.1" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.garmin.com/xmlschemas/TrackPointExtension/v1 http://www.garmin.com/xmlschemas/TrackPointExtensionv1.xsd"> <metadata> <name/> <desc/> <author><name>Jasper</name></author> </metadata> <trk> <name/> <trkseg> <trkpt... ``` There's also an empty name tag within the `<trk>`. When I remove the `<name/>` from the file I can read it without any problems. Co-authored-by: Jasper Bosch <jasper-bosch@outlook.com>
- Loading branch information