<div dir="ltr">Christian,<br><div><div class="gmail_extra"><br><div class="gmail_quote">On 29 December 2015 at 05:45, Christian Rémillard <span dir="ltr"><<a href="mailto:christian.remillard@gmail.com" target="_blank">christian.remillard@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I'm looking for the divelog ssrf file format documentation reference. Is there any DTD/Schema/other available?</div><br></div></blockquote><div><br>To the best of my knowledge, no such explicit documentation exists.  However, some clever people designed it to be human readable, and even I can make sense of it.  It is an xml file, and the best 'documentation' you are likely to find is an example file.  Either create a log yourself with Subsurface, or use one of the examples provided in the source (see the dives directory).  The format has been tweaked over the development, and the current log format is v3.<br><br></div><div>A good example in the current format is test40-42.xml, because it includes multiple dives, some manually entered, and some with dive computer samples.  You'll have it if you've downloaded the source from git or as a tarball, otherwise the file on git is here:<br><a href="http://git.subsurface-divelog.org/index.cgi?p=subsurface.git;a=blob;f=dives/test40-42.xml;h=2fa234d4ba5954c5dd269b19279d46be0f2033b1;hb=1f4d02a861aa22cf4f828e1139e0e6354b24b022">http://git.subsurface-divelog.org/index.cgi?p=subsurface.git;a=blob;f=dives/test40-42.xml;h=2fa234d4ba5954c5dd269b19279d46be0f2033b1;hb=1f4d02a861aa22cf4f828e1139e0e6354b24b022</a><br><br></div><div>That file doesn't include dive tags, if you want an example of that, the SampleDivesV2.ssrf file does (the only difference I'm aware of between v2 and v3 format is dive site handling)<br><a href="http://git.subsurface-divelog.org/index.cgi?p=subsurface.git;a=blob;f=dives/SampleDivesV2.ssrf;h=5189de41fa97e33389a862c90d2d46f51ebc8ff8;hb=1f4d02a861aa22cf4f828e1139e0e6354b24b022">http://git.subsurface-divelog.org/index.cgi?p=subsurface.git;a=blob;f=dives/SampleDivesV2.ssrf;h=5189de41fa97e33389a862c90d2d46f51ebc8ff8;hb=1f4d02a861aa22cf4f828e1139e0e6354b24b022</a><br><br></div><div>The other 'documentation' is the code that saves the file, subsurface-core/save-xml.c.  It's less intuitive than the xml file itself, but the code is well commented.<br><a href="http://git.subsurface-divelog.org/index.cgi?p=subsurface.git;a=blob;f=subsurface-core/save-xml.c;h=eabcf4f26c6eb280022b38efef92071236f3b00b;hb=1f4d02a861aa22cf4f828e1139e0e6354b24b022">http://git.subsurface-divelog.org/index.cgi?p=subsurface.git;a=blob;f=subsurface-core/save-xml.c;h=eabcf4f26c6eb280022b38efef92071236f3b00b;hb=1f4d02a861aa22cf4f828e1139e0e6354b24b022</a><br><br></div><div>Cheers,<br><br></div><div>Rick<br></div><div><br></div><div><br></div><div> </div></div></div></div></div>