Page 1 of 1

Exclude data field(s) for exports

Posted: Tue Oct 28, 2014 2:38 pm
by THX723
For example, I would love to be able to exclude 'Notes' in my XML exports before I upload to Divelogs.de website. I see this is already an option for the PDF export. Would be awesome to also extend to XML export.

Re: Exclude data field(s) for exports

Posted: Wed Oct 29, 2014 3:44 am
by nick
I'd rather not make the XML format configurable. By doing so, the code that reads it then needs to perform more checks to validate whether or not data exists and is in an appropriate format. It is intended to be very simple to read/write that format, and be a consistent set of data.

Other applications may (rightfully) expect it to exist, so removing it is a potential problem for them also.

Re: Exclude data field(s) for exports

Posted: Tue Nov 04, 2014 12:40 pm
by THX723
I completely understand and agree with your methodology in preserving the .xml format. I don't mean to suggest that the field(s) be removed from the .xml export, just that they be left blank.

If not the least, would you consider applying to the Note field? I find some of the Dive Notes I keep contain private information that I would rather not share with the general public (when I upload to Divelogs.de)

Re: Exclude data field(s) for exports

Posted: Tue Nov 04, 2014 12:54 pm
by nick
I could potentially do that, I guess I could jam another preference in some place to leave the notes specifically blank. Seems like a reasonable compromise.

Re: Exclude data field(s) for exports

Posted: Tue Nov 04, 2014 4:32 pm
by nick
I've done this. If you like, drop me an email and I can send you a version to try out.

Re: Exclude data field(s) for exports

Posted: Wed Nov 05, 2014 4:30 pm
by THX723
nick wrote:I've done this. If you like, drop me an email and I can send you a version to try out.
Cool beans! You have mail. :)