Load and save extra data in Subsurface XML format

Includes test dive to test missing attributes and the overall syntax.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-11-06 10:34:19 -08:00
parent 9aefaa1ec8
commit d6b4109409
3 changed files with 45 additions and 2 deletions

13
dives/test38.xml Normal file
View file

@ -0,0 +1,13 @@
<divelog program='subsurface' version='2'>
<settings>
</settings>
<dives>
<dive number='1' date='2014-03-08' time='09:00:00' duration='30:00 min'>
<notes>test dive with dive computer extra data</notes>
<divecomputer model='Ficticious Perfect' deviceid='00abcdef' diveid='12345678'>
<depth max='30.0 m' mean='15.0 m' />
<extradata key='some key' value='some value' />
</divecomputer>
</dive>
</dives>
</divelog>