This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Editing XML to change an activity

Some of the info in these forms has been extremely helpful. I have used this info to edit an XML file but have some strange outcomes and maybe someone can help me figure out what's going on.

Here's what happened and what I did:
(1) I went cycling with my old Edge 205 after not using the unit for over a year (I can only imagine the battery was drained to empty after that long in a drawer).
(2) The activity showed up as occurring on July 25 2009, when in fact the cycling occured on September 5 2009
(3) I imported it to Garmin Connect and was annoyed by the wrong date
(4) Following the guidance of some of these posts, I exported the activity as an XML file and opened it in WordPad
(5) I noticed that the date on the activity and the first lap was July 2005 but starting with the first trackpoint it was accurate. My hypothesis is that the unit had not been used in so long that it lost track of the date, but re-acquired it from the satellites...but there was a lag, so when I started the activity it still had the wrong date
(6) I updated the date and time for the first trackpoint and lap (copied the date from the first trackpoint actually)
(7) Uploaded to Garmin Connect

The outcome:
- Date is correct, the activity now is in its rightful place in the chronological activity list
- All data is identical to the original activity, except…
- The elevation data is completely different for almost every lap, and
- The calorie data is off by a very small factor on a few of the laps

Any thoughts on how changing those two dates cascaded into differences in the elevations and calories?

Thanks,
Matt
  • Did I offend everyone with my question somehow or is it just that no one has an answer?

    Sorry for the thread bump but I'm curious and based on other posts about editing the files, some people on this board seem to know how to do this....

    Thanks (and I promise no more bumps),
    Matt
  • If you don't mind posting the original file here, someone would have access to it to help.
  • Sure, here is the file, thanks.
    Had to zip it b/c was getting an "exceeds my quota" error
  • Here's the fixed file attached. All I did was to remove the first lap completely because all it had was one trackpoint with no data other than a timestamp.

    I also changed the ID to match the first trackpoint time.

    This should work for you.
  • Steve, thanks for that.

    It is interesting, however, the elevation issue occurs in your file as well. For some reason changing the date completely changes the elevation data.

    Strange!!
  • You're using an Edge 205 which does not have the barometric altimeter. The elevation profile might not be as steady as you'd imagine it to be.
  • Actually my observation is that changing the start time of the activity changes the elevation and calorie reporting in Garmin Connect.

    In other words, the original file and the edited file have different elevation and calorie numbers when you import them to Garmin Connect.

    Strange, right? All you did was delete a trackpoint with no distace associated to it, and update the start time of the activity.