-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
namespace information is saved incorrectly #184
Comments
I tried to reproduce this bug, but can't. Here's my test: 6c13f2d Maybe it's related to a specific version of python and/or lxml? What version are you using? And, if it's python 2.* -- can you try with python 3.6+? |
Are you creating new GPX files with gpxpy by opening an existing file, creating a new gpx object and then copying over some info? |
Using the two files I uploaded, I load garmin.gpx and then save it as bad.gpx. |
Here's what I tried:
The first two lines of the result are:
...but not...
...from your Anyway, I'll close this issue. I'll reopen it when/if I have a runnable example (possibly a test in |
Garmin files have namespace information in the headers and use namespace references in the extensions field. When gpxpy opens a garmin file with extensions it works correctly, but when it saves that gpx file it incorrectly removes the namespace from the file header and expand the namespaces in all extension lines. The expansion is not quoted and contains '/' so it can not be parsed again later.
The text was updated successfully, but these errors were encountered: