You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Gpx10Serializer and Gpx11Serializer in my app and want to deserialize GPX files from a stream.
I have come across GPX files that do not have the correct namespace set:
<?xml version="1.0" encoding="UTF-8"?>
<gpx creator="Runtastic: Life is short - live long, http://www.runtastic.com" version="1.1" xmlns="http://www.topografix.com/GPX/1/1" xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1" xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.garmin.com/xmlschemas/GpxExtensions/v3 http://www.garmin.com/xmlschemas/GpxExtensionsv3.xsd http://www.garmin.com/xmlschemas/TrackPointExtension/v1 http://www.garmin.com/xmlschemas/TrackPointExtensionv1.xsd"><metadata><name>runtastic_20220225_0813</name>
<copyright author="www.runtastic.com"><year>2022</year>
<license>http://www.runtastic.com</license>
</copyright>
<link href="http://www.runtastic.com"><text>runtastic</text>
</link>
...
I am using
Gpx10Serializer
andGpx11Serializer
in my app and want to deserialize GPX files from a stream.I have come across GPX files that do not have the correct namespace set:
This causes the deserialization to fail with an
InvalidOperationException
(<gpx xmlns=''> was not expected
) because of this attribute (I think):Geo/Geo/Gps/Serialization/Xml/Gpx/Gpx11/GpxFile.cs
Line 6 in 44fdae6
Geo/Geo/Gps/Serialization/Xml/Gpx/Gpx10/GpxFile.cs
Line 6 in 44fdae6
It would be great if it was possible to ignore that namespace so that the library can also import those GPX files
The text was updated successfully, but these errors were encountered: