ticofab / android-gpx-parser

A library to parse XML Gpx files, built for Android.
Apache License 2.0
123 stars 44 forks source link

Add the ability to ignore extensions #56

Open ravenfeld opened 1 week ago

ravenfeld commented 1 week ago

I have GpxParser which crashes because some sites add extensions with prefixes. Example

      <trkpt lat="45.148454" lon="5.888473">
        <ele>1205.75</ele>
        <extensions>
          <gpxtpx:TrackPointExtension>
            <gpxtpx:Extensions>
              <reversedirection>yes</reversedirection>
              <highway>path</highway>
              <mtb:scale>2</mtb:scale>
            </gpxtpx:Extensions>
          </gpxtpx:TrackPointExtension>
        </extensions>
      </trkpt>

GpxParser cash on mtn:scale

Will it be possible for the developer to ignore the extensions ?

ticofab commented 1 week ago

Thanks @ravenfeld for opening this issue. Unfortunately I am no longer actively maintaining this project and looking for volunteers to take over.

ravenfeld commented 1 week ago

Thank you for your reply. I'm going to try to correct it myself and maybe think about a kotlin library.