Skip to content
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

error parsing gpx 1.1 file (from la-flamme-rouge website) #48

Closed
luogni opened this issue May 6, 2021 · 1 comment · Fixed by #49
Closed

error parsing gpx 1.1 file (from la-flamme-rouge website) #48

luogni opened this issue May 6, 2021 · 1 comment · Fixed by #49

Comments

@luogni
Copy link

luogni commented May 6, 2021

thread 'main' panicked at 'Error parsing gpx file.: Error(InvalidElementLacksAttribute("version", "gpx"), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })', src/context.rs:160:32

fail.tar.gz

@luogni
Copy link
Author

luogni commented May 6, 2021

if I add the version attribute it fails with:

thread 'main' panicked at 'Error parsing gpx file.: Error(InvalidChildElement("desc", "metadata"), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })', src/context.rs:160:32

bors bot added a commit that referenced this issue May 15, 2021
49: Use XML tag "desc" instead of "description" r=urschrei a=cassaundra

The description field of the metadata type is parsed and written with the "description" tag instead of "desc." I believe this is an error, as all other description fields in the crate follow the schema correctly for this field. This pull request resolves that discrepancy and should fix #48.

Schema reference: [1.0](https://www.topografix.com/gpx_manual.asp#desc)/[1.1](https://www.topografix.com/GPX/1/1/#type_metadataType)

Co-authored-by: Cassaundra <cass@cassaundra.io>
@bors bors bot closed this as completed in 8808af0 May 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant