macdive_logbook.dtd is 404
Posted: Thu Aug 14, 2014 6:24 pm
Is there a DTD for the macdive_logbook XML format. The DTD URL reference used in the XML exports (http://www.mac-dive.com/macdive_logbook.dtd) is 404 not found. I'm finding myself reverse engineering it in order to determine enumerations, acceptable data and optional/required elements.
Why, you ask? I'm determined to import my previous and ongoing dives recorded on a Cochran computer (which continues to be my preferred dive computer.) The Cochran Analyst software begrudgingly allows export to ancient (and totally undocumented) DAN ".cci" files. I've figured out most of the the .cci gibberish and want to parse the data into the macdive_logbook XML format. UDDF & UDCF, while they have an available DTD, are... um.... disappointing. Couldn't find much on ZXU.
Some things cannot be answered by playing with the UI and exporting. For example, is <cns> a required element of the <dive> parent? I hope not 'cause modeling that based on time & PO2 is not a simple equation. What is the <identifier> tag about? How does <sampleInterval> work since there is significant discrepancy between expected intervals and recorded intervals? Etc.
Why, you ask? I'm determined to import my previous and ongoing dives recorded on a Cochran computer (which continues to be my preferred dive computer.) The Cochran Analyst software begrudgingly allows export to ancient (and totally undocumented) DAN ".cci" files. I've figured out most of the the .cci gibberish and want to parse the data into the macdive_logbook XML format. UDDF & UDCF, while they have an available DTD, are... um.... disappointing. Couldn't find much on ZXU.
Some things cannot be answered by playing with the UI and exporting. For example, is <cns> a required element of the <dive> parent? I hope not 'cause modeling that based on time & PO2 is not a simple equation. What is the <identifier> tag about? How does <sampleInterval> work since there is significant discrepancy between expected intervals and recorded intervals? Etc.