All <audio>, <image>, and lt;video> files have to be declared inside the <mediadata> section. In the following main sections only cross-references are needed to be made. Additional information given with a certain media file is globally known through the referentiation and needs to be set only once, too.
The <mediadata> section appears after <generator> and before <maker>.
The centralisation of all media data in a separate section enhances easy ex- and import between different UDDF files.
<uddf>
<uddf version="3.2.0"> <generator> <!-- here information about the software --> </generator> <mediadata> <audio id="audio_1"> <objectname>../abc/diving.wav</objectname> </audio> <audio id="audio_2"> <objectname>../abc/whale-singing.wav</objectname> </audio> <image id="img_kai"> <objectname>../images/kai.jpg</objectname> </image> <image id="img_whale"> <objectname>../images/whale.jpg</objectname> </image> <image id="image4" height="4000" width="3000" format="jpg"> <!-- absolute path (Unix world) --> <objectname>/home/kai/diving/image4.jpg</objectname> <imagedata> <datetime>2007-01-06T10:17:41</datetime> <aperture>2.8</aperture> <!-- aperture: 2.8 --> <!-- exposure compensation: -1 EV --> <exposurecompensation>-1.0</exposurecompensation> <filmspeed>400</filmspeed> <!-- film speed: 400 ASA --> <shutterspeed>0.002</shutterspeed> <!-- shutter speed: 1/500 s --> <focallength>0.035</focallength> <!-- focal length of lens: 35 mm --> <focusingdistance>1.3</focusingdistance> <!-- focus distance of lens: 1.3 m --> <meteringmethod>spot</meteringmethod> <!-- spot-metering --> </imagedata> </image> <video id="video_sail-dive-2000"> <objectname>/home/kai/logbook/videos/sail-dive-2000.mpg</objectname> </video> <!-- here more <audio>-, <image>-, or <video> elements --> </mediadata> <diver> <owner id="kai"> <!-- cross-referentiation on an image of owner Kai --> <link ref="img_kai"/> <!-- further description of the owner of the UDDF file --> </owner> <!-- descriptions of dive buddies of the owner of the UDDF file --> </diver> <!-- here more sections (<divesite>, <gasdefinitions>, <profiledata> etc.) --> </uddf>