Yes, I can see your point...
I deleted the whole folder I created a few hours ago and recreated one with the dives 30 & 31 only.
The numbering is still not the way you expected it would be. The reason behind it could be simple: When I started diving with the Uemis I decided to keep the numbering of my dives from my manual written logbook: so dive number 143 from the written logbook is my 30th dive with the UEMIS SDA, etc.
I hope it helps...
This helps quite a bit. In that now dive30 corresponds to the dive31 files from uemis.
dive_no appears to be the numbering in your logbook.
object_id appears to be the way to connect the different files.
Let me explain still a bit more.
dive30.SDA contains
object_id 30 and
dive_no 143
dive31.SDA contains
object_id 31 and
dive_no 144
as expected, the divelogNN.SDA files contain
object_id values that are one higher:
divelog30.SDA contains
object_id 31
divelog31.SDA contains
object_id 32
Sadly, the divelog files don't contain the
dive_no. So the only way to match the corresponding diveNN.SDA and divelogNN.SDA files is by
knowing that the
object_id field is just offset by 1.
(BTW: this has me quite worried because it is SO inexplicable... are we /really/ extracting the matching pairs from the SDA using myuemis.jar? But I digress)
To make things more complicated, the divelogNN.xml files contains neither a
dive_no nor an
object_id. It contains a
dive_number - and that appears to match the
object_id of the divelogNN.SDA file (i.e., the number that's one higher than the number in the diveNN.SDA file).
So for the files that you sent to me, the divelog31.uemis.xml appears to match dive30 - and if you diff the two divelog files you'll see that they cover the same dive (I still need to post my latest version of the parser to this forum - the one that you have still mis-parses quite a few elements; with the version I run it's really easy to see that these match).
So what have I learned so far? Matching the files seems to be a real mess.
And once we figure out which is which, we appear to be doing a very good job parsing the files.