# Presentation: 388203

## Applications of XML

**Applications of XML**

- Oz
- OceanAtlas Software and NOAA/PMEL

## How I Use XML

- Settings files for JOA resources including preferences, color palettes, color bars, interpolation surfaces, map settings.
- As a replacement EPIC pointer files for describing collections of metadata for profile and time-series data. EPIC pointer files are difficult to parse with a rigid format that is difficult to expand.

## Advantages of XML

- Not an opaque binary object (e.g., a serialized Java object)--viewable and editable using very simple tools
- Settings files not rendered obsolete when your program needs change. If you serialized a Java object that held the specifications, for example, a map, changing the map specification object would  render all your existing settings files unreadable. Using XML you would simple add/remove tags. Your code simply ignores obsolete tags until overwritten by a new version.
- Easy to organize information into hierarchies and a kind of object inheritance.

## Advantages of XML (continued)

- Easy to parse with readily available libraries--I use an ancient SAX parser.
- Probably easier to parse with more modern libraries.

## Examples: Setting File

- <?xml version="1.0"?>
- <joapreferences>
-   <connectlinewidth>1</connectlinewidth>
-   <browsingcursorsize>8</browsingcursorsize>
-   <browsingcursorsymbol>4</browsingcursorsymbol>
-   <positionformat>2</positionformat>
-   <dateformat>yyyy-MMM-dd</dateformat>
-   <translateparamnames>true</translateparamnames>
-   <defaultautoscalecolors>0</defaultautoscalecolors>
-   <framecolor red="255" green="255" blue="255"/>
-   <contentcolor red="192" green="192" blue="192"/>
-   <missingvalcolor red="128" green="128" blue="128"/>
-   <woceprefs convqc="true" convtemp="true" masstovol="true" repleq3="false" repleq4="false" repleq7="false" repleq8="false" replalleq4="false" replgaseq34="false"/>
-   <enhancementprefs enlargecurrsymbol="true" replacecurrsymbol="false" enlargecurrsymbolby="50.0" usecontrastingcolor="false"/>
-   <stylesheet axisvaluefont="Arial" axislabelfont="Arial" isopycnalfont="Arial" plottitlefont="sansserif" colorbarfont="serif" axisvaluesize="12" axislabelsize="14" isopycnalsize="12" plottitlesize="16" colorbarsize="12" axisvaluestyle="0" axislabelstyle="0" isopycnalstyle="0" plottitlestyle="0" colorbarstyle="0">
-     <axislabelcolor red="1" green="1" blue="1"/>
-     <axisvaluecolor red="1" green="1" blue="1"/>
-     <isopycnalcolor red="1" green="1" blue="1"/>
-     <plottitlecolor red="1" green="1" blue="1"/>
-     <colorbarcolor red="0" green="0" blue="0"/>
-   </stylesheet>
- </joapreferences>

## Examples: Setting File

- <?xml version="1.0"?>
- <joacolorbar>
-   <param>TEMP</param>
-   <title>global</title>
-   <description>32 contours covering World Ocean ranges</description>
-   <numlevels>32</numlevels>
-   <baselevel>-1.5</baselevel>
-   <endlevel>28.0</endlevel>
-   <contourvalues>
-     <value>-1.5</value>
-     <value>-1.1</value>
-     <value>-1.0</value>
-     <value>-0.9</value>
-     <value>-0.6</value>
- 	...
-     <value>3.0</value>
-     <value>3.3</value>
-     <value>3.6</value>
-     <value>3.9</value>
- </contourvalues>
-   <colorvalues>
-     <cvalue red="16" green="15" blue="218"/>
-     <cvalue red="31" green="30" blue="220"/>
-     <cvalue red="46" green="45" blue="222"/>
-     <cvalue red="61" green="60" blue="225"/>
-     <cvalue red="76" green="75" blue="227"/>
-     	...
-     <cvalue red="106" green="105" blue="232"/>
-     <cvalue red="121" green="120" blue="234"/>
-     <cvalue red="220" green="30" blue="30"/>
-     <cvalue red="218" green="15" blue="15"/>
-   </colorvalues>
- </joacolorbar>

## Designing XML Files

- I have usually designed my XML files by building a DTD (Document Type Definition) file (unless it’s very simple).
- DTDs describe “rules for how the XML document elements, attributes, and other data are defined and logically related in an XML-compliant document.” Can also use the DTD to validate the correctness of an XML document.
- An XML document may also have an associated stylesheet that specifies how the document looks when displayed (e.g., in a web browser). I don’t build stylesheets because I’m not concerned with how they look.

## Example of a DTD: EPIC XML Pointer File

- <!--DTD for EPIC Profile Data -->
- <!-- ? =  optional, not repeatable -->
- <!-- + =   required and repeatable -->
- <!-- * =  optional and repeatable -->
- <!ELEMENT epicxml(domain, varlist?, fileset+, attribute*, comment*)>
- <!ATTLIST epicxml version CDATA #REQUIRED
-                   type (profile | time-series | grid | other) #REQUIRED
-                   URI CDATA #IMPLIED
-                   lexicon CDATA #IMPLIED>
- <!-- domain for epicxml must consist of location=”north”, “south”, “east”, “west”, “top”, “bottom”, “start”,  and “end” for latitude, longitude, vertical, and time, respectively -->
- <!ELEMENT domain(latitude+, longitude+, vertical+, (time | date)+, attribute*, comment*)>
- <!ELEMENT deltat (#PCDATA)>
- <!ATTLIST deltat units CDATA #IMPLIED "minutes">     <!-- acceptable units are seconds, minutes, hours, days, unacceptable units include months, years -->
- <!ELEMENT time (#PCDATA)>
- <!ATTLIST time location (start | end | point) #REQUIRED “point”
-                units CDATA #IMPLIED >
- <!ELEMENT date EMPTY>
- <!ATTLIST date location (start | end | point) #REQUIRED “point”
-                 year CDATA #REQUIRED
-                 month CDATA #REQUIRED
-                 day CDATA #REQUIRED
-                 hour CDATA #IMPLIED
-                 min CDATA #IMPLIED
-                 secs CDATA #IMPLIED>
- <!ELEMENT latitude (#PCDATA)>
- <!ATTLIST latitude location (north | south | start | end | point) #REQUIRED “point”
-                     units (degrees_north | degrees_south) #IMPLIED “degrees_north”>
- <!ELEMENT longitude (#PCDATA)>
- <!ATTLIST longitude location (east | west | start | end | point) #REQUIRED “point”
-                     units (degrees_east | degrees_west) #IMPLIED “degrees_east”>
- <!ELEMENT vertical (#PCDATA)>
- <!ATTLIST vertical location (top | bottom | start | end | point) #REQUIRED “point”
-                    units CDATA #REQUIRED
-                    positive CDATA "down">
- <!ELEMENT varlist ((variable | variableref)+, attribute*, comment*)>
- <!ATTLIST varlist lexicon CDATA #IMPLIED>
- <!ELEMENT variable (attribute*, comment*)>
- <!ATTLIST variable name ID #REQUIRED
-                    units CDATA #REQUIRED
-                    description CDATA #IMPLIED
-                    lexicon CDATA #IMPLIED>
- <!ELEMENT variableref EMPTY>
- <!ATTLIST variableref refname IDREF #REQUIRED>
- <!ELEMENT fileset (varlist?, station*, grid*, track*, attribute*, comment*)>
- <!ATTLIST fileset id CDATA #REQUIRED
-                   URI CDATA #IMPLIED>
- <!-- time should have location=”start”, “end” for time series, “point” for profile,
- vertical should have location=”top”, “bottom” for profile, “point” for time series,
- latitude and longitude should have location=”point” -->
- <!ELEMENT station (varlist?, (time | date)+, latitude, longitude, vertical+, deltat?, stationvalues*, attribute*, comment*)>
- <!ATTLIST station id CDATA #REQUIRED
-                   cast CDATA #IMPLIED
-                   URI CDATA #IMPLIED
-                   bottom CDATA #IMPLIED
-                   reference CDATA #REQUIRED>
- <!-- domain for grid must consist of location=”north”, “south”, “east”, “west”, “top”, “bottom”, “start”,  and “end” for latitude, longitude, vertical, and time, respectively -->
- <!ELEMENT grid (varlist?, domain, attribute*, comment*)>
- <!ATTLIST grid id CDATA #REQUIRED
- URI CDATA #IMPLIED
- reference CDATA #REQUIRED>
- <!-- domain for track must consits of location=”start” and location=”end” for the latitude, longitude, vertical, and time elements -->
- <!ELEMENT track (varlist?, domain, attribute*, comment*)>
- <!ATTLIST track id CDATA #REQUIRED
- URI CDATA #IMPLIED
- reference CDATA #REQUIRED>
- <!ELEMENT stationvalue (attribute*, comment*)>
- <!ATTLIST stationvalue cast CDATA #REQUIRED
-                  name CDATA #REQUIRED
-                  units CDATA #REQUIRED
-                  method CDATA #IMPLIED
-                  lexicon CDATA #IMPLIED
-                  value CDATA #REQUIRED>
- <!ELEMENT attribute EMPTY>
- <!ATTLIST attribute name CDATA #REQUIRED
-                     value CDATA #REQUIRED>
- <!ELEMENT comment (#PCDATA)>

## Example EPIC XML Pointer File from DTD

- <?xml version="1.0"?>
- <epicxml version="1.0" type="profile" uri="file:///JOA2/a11">
-   <domain>
-     <latitude location="south" units="degrees_north">-61.58</latitude>
-     <latitude location="north" units="degrees_north">-38.166000000000004</latitude>
-     <longitude location="west" units="degrees_east">116.84</longitude>
-     <longitude location="east" units="degrees_east">129.633</longitude>
-     <vertical location="top" units="db" positive="down">0.0</vertical>
-     <vertical location="bottom" units="db" positive="down">5636.0</vertical>
-     <date location="start" year="1968" month="8" day="23" hour="0" min="0" secs="0.0"/>
-     <date location="end" year="1970" month="8" day="13" hour="0" min="0" secs="0.0"/>
-   </domain>
-   <varlist>
-     <variable name="PRES" units="db" lexicon="JOA" algorithm=""/>
-     <variable name="TEMP" units="deg C" lexicon="JOA" algorithm=""/>
-     <variable name="SALT" units="psu" lexicon="JOA" algorithm=""/>
-     <variable name="O2  " units="ml/l" lexicon="JOA" algorithm=""/>
-     <variable name="PO4 " units="um/l" lexicon="JOA" algorithm=""/>
-     <variable name="NO3 " units="um/l" lexicon="JOA" algorithm=""/>
-     <variable name="SIO3" units="um/l" lexicon="JOA" algorithm=""/>
-   </varlist>
-   <fileset id="117E-Eltanin    ">
-     <varlist>
-       <variableref name="PRES"/>
-       <variableref name="TEMP"/>
-       <variableref name="SALT"/>
-       <variableref name="O2  "/>
-       <variableref name="PO4 "/>
-       <variableref name="NO3 "/>
-       <variableref name="SIO3"/>
-     </varlist>
-     <station id="886" cast="0" bottom="4560.0" reference="117E-Eltanin    _886.nc">
-       <date location="point" year="1968" month="9" day="25" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-58.745000000000005</latitude>
-       <longitude location="point" units="degrees_east">117.138</longitude>
-       <vertical location="top" units="db" positive="down">3.0</vertical>
-       <vertical location="bottom" units="db" positive="down">4539.0</vertical>
-     </station>
-     <station id="885" cast="0" bottom="4442.0" reference="117E-Eltanin    _885.nc">
-       <date location="point" year="1968" month="9" day="23" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-56.055</latitude>
-       <longitude location="point" units="degrees_east">117.22</longitude>
-       <vertical location="top" units="db" positive="down">10.0</vertical>
-       <vertical location="bottom" units="db" positive="down">4529.0</vertical>
-     </station>
-     <station id="884" cast="0" bottom="3831.0" reference="117E-Eltanin    _884.nc">
-       <date location="point" year="1968" month="9" day="21" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-52.951</latitude>
-       <longitude location="point" units="degrees_east">117.043</longitude>
-       <vertical location="top" units="db" positive="down">12.0</vertical>
-       <vertical location="bottom" units="db" positive="down">2319.0</vertical>
-     </station>
-     <station id="883" cast="0" bottom="3580.0" reference="117E-Eltanin    _883.nc">
-       <date location="point" year="1968" month="9" day="19" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-51.198</latitude>
-       <longitude location="point" units="degrees_east">116.921</longitude>
-       <vertical location="top" units="db" positive="down">10.0</vertical>
-       <vertical location="bottom" units="db" positive="down">2614.0</vertical>
-     </station>
-     <station id="882" cast="0" bottom="3633.0" reference="117E-Eltanin    _882.nc">
-       <date location="point" year="1968" month="9" day="18" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-49.083</latitude>
-       <longitude location="point" units="degrees_east">117.24000000000001</longitude>
-       <vertical location="top" units="db" positive="down">5.0</vertical>
-       <vertical location="bottom" units="db" positive="down">3130.0</vertical>
-     </station>
-     <station id="881" cast="0" bottom="3838.0" reference="117E-Eltanin    _881.nc">
-       <date location="point" year="1968" month="9" day="17" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-47.478</latitude>
-       <longitude location="point" units="degrees_east">116.84</longitude>
-       <vertical location="top" units="db" positive="down">8.0</vertical>
-       <vertical location="bottom" units="db" positive="down">3686.0</vertical>
-     </station>
-     <station id="880" cast="0" bottom="4035.0" reference="117E-Eltanin    _880.nc">
-       <date location="point" year="1968" month="9" day="16" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-46.068</latitude>
-       <longitude location="point" units="degrees_east">117.031</longitude>
-       <vertical location="top" units="db" positive="down">8.0</vertical>
-       <vertical location="bottom" units="db" positive="down">3589.0</vertical>
-     </station>
-     <station id="879" cast="0" bottom="4545.0" reference="117E-Eltanin    _879.nc">
-       <date location="point" year="1968" month="9" day="14" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-43.026</latitude>
-       <longitude location="point" units="degrees_east">117.123</longitude>
-       <vertical location="top" units="db" positive="down">5.0</vertical>
-       <vertical location="bottom" units="db" positive="down">4353.0</vertical>
-     </station>
-     <station id="878" cast="0" bottom="4866.0" reference="117E-Eltanin    _878.nc">
-       <date location="point" year="1968" month="9" day="13" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-39.138</latitude>
-       <longitude location="point" units="degrees_east">117.046</longitude>
-       <vertical location="top" units="db" positive="down">7.0</vertical>
-       <vertical location="bottom" units="db" positive="down">4461.0</vertical>
-     </station>
-   </fileset>
-   <fileset id="120E-1970  ">
-     <varlist>
-       <variableref name="PRES"/>
-       <variableref name="TEMP"/>
-       <variableref name="SALT"/>
-       <variableref name="O2  "/>
-       <variableref name="PO4 "/>
-       <variableref name="NO3 "/>
-       <variableref name="SIO3"/>
-     </varlist>
-     <station id="1" cast="0" bottom="4214.0" reference="120E-1970  _1.nc">
-       <date location="point" year="1970" month="8" day="5" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-61.58</latitude>
-       <longitude location="point" units="degrees_east">120.146</longitude>
-       <vertical location="top" units="db" positive="down">2.0</vertical>
-       <vertical location="bottom" units="db" positive="down">4249.0</vertical>
-     </station>
-     <station id="2" cast="0" bottom="4604.0" reference="120E-1970  _2.nc">
-       <date location="point" year="1970" month="8" day="7" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-57.94</latitude>
-       <longitude location="point" units="degrees_east">120.128</longitude>
-       <vertical location="top" units="db" positive="down">1.0</vertical>
-       <vertical location="bottom" units="db" positive="down">4687.0</vertical>
-     </station>
-     <station id="3" cast="0" bottom="4494.0" reference="120E-1970  _3.nc">
-       <date location="point" year="1970" month="8" day="8" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-56.053000000000004</latitude>
-       <longitude location="point" units="degrees_east">119.941</longitude>
-       <vertical location="top" units="db" positive="down">1.0</vertical>
-       <vertical location="bottom" units="db" positive="down">4557.0</vertical>
-     </station>
-     <station id="4" cast="0" bottom="4549.0" reference="120E-1970  _4.nc">
-       <date location="point" year="1970" month="8" day="8" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-55.068</latitude>
-       <longitude location="point" units="degrees_east">119.793</longitude>
-       <vertical location="top" units="db" positive="down">1.0</vertical>
-       <vertical location="bottom" units="db" positive="down">4608.0</vertical>
-     </station>
-     <station id="5" cast="0" bottom="4259.0" reference="120E-1970  _5.nc">
-       <date location="point" year="1970" month="8" day="9" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-54.016</latitude>
-       <longitude location="point" units="degrees_east">119.791</longitude>
-       <vertical location="top" units="db" positive="down">1.0</vertical>
-       <vertical location="bottom" units="db" positive="down">4078.0</vertical>
-     </station>
-     <station id="6" cast="0" bottom="3552.0" reference="120E-1970  _6.nc">
-       <date location="point" year="1970" month="8" day="9" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-53.043</latitude>
-       <longitude location="point" units="degrees_east">119.71600000000001</longitude>
-       <vertical location="top" units="db" positive="down">4.0</vertical>
-       <vertical location="bottom" units="db" positive="down">3520.0</vertical>
-     </station>
-     <station id="7" cast="0" bottom="3669.0" reference="120E-1970  _7.nc">
-       <date location="point" year="1970" month="8" day="10" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-51.99</latitude>
-       <longitude location="point" units="degrees_east">119.505</longitude>
-       <vertical location="top" units="db" positive="down">1.0</vertical>
-       <vertical location="bottom" units="db" positive="down">3611.0</vertical>
-     </station>
-     <station id="8" cast="0" bottom="3630.0" reference="120E-1970  _8.nc">
-       <date location="point" year="1970" month="8" day="11" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-50.028</latitude>
-       <longitude location="point" units="degrees_east">119.66</longitude>
-       <vertical location="top" units="db" positive="down">1.0</vertical>
-       <vertical location="bottom" units="db" positive="down">3375.0</vertical>
-     </station>
-     <station id="9" cast="0" bottom="3900.0" reference="120E-1970  _9.nc">
-       <date location="point" year="1970" month="8" day="12" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-48.021</latitude>
-       <longitude location="point" units="degrees_east">120.063</longitude>
-       <vertical location="top" units="db" positive="down">1.0</vertical>
-       <vertical location="bottom" units="db" positive="down">3741.0</vertical>
-     </station>
-     <station id="10" cast="0" bottom="4244.0" reference="120E-1970  _10.nc">
-       <date location="point" year="1970" month="8" day="13" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-46.061</latitude>
-       <longitude location="point" units="degrees_east">119.89</longitude>
-       <vertical location="top" units="db" positive="down">1.0</vertical>
-       <vertical location="bottom" units="db" positive="down">4255.0</vertical>
-     </station>
-   </fileset>
-   <fileset id="128E-1968       ">
-     <varlist>
-       <variableref name="PRES"/>
-       <variableref name="TEMP"/>
-       <variableref name="SALT"/>
-       <variableref name="O2  "/>
-       <variableref name="PO4 "/>
-       <variableref name="NO3 "/>
-       <variableref name="SIO3"/>
-     </varlist>
-     <station id="867" cast="0" bottom="4693.0" reference="128E-1968       _867.nc">
-       <date location="point" year="1968" month="8" day="23" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-56.778</latitude>
-       <longitude location="point" units="degrees_east">129.633</longitude>
-       <vertical location="top" units="db" positive="down">102.0</vertical>
-       <vertical location="bottom" units="db" positive="down">4570.0</vertical>
-     </station>
-     <station id="869" cast="0" bottom="4483.0" reference="128E-1968       _869.nc">
-       <date location="point" year="1968" month="8" day="26" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-56.026</latitude>
-       <longitude location="point" units="degrees_east">128.148</longitude>
-       <vertical location="top" units="db" positive="down">9.0</vertical>
-       <vertical location="bottom" units="db" positive="down">4626.0</vertical>
-     </station>
-     <station id="870" cast="0" bottom="4050.0" reference="128E-1968       _870.nc">
-       <date location="point" year="1968" month="8" day="28" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-53.176</latitude>
-       <longitude location="point" units="degrees_east">128.181</longitude>
-       <vertical location="top" units="db" positive="down">13.0</vertical>
-       <vertical location="bottom" units="db" positive="down">4072.0</vertical>
-     </station>
-     <station id="871" cast="0" bottom="3764.0" reference="128E-1968       _871.nc">
-       <date location="point" year="1968" month="8" day="28" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-52.056000000000004</latitude>
-       <longitude location="point" units="degrees_east">128.121</longitude>
-       <vertical location="top" units="db" positive="down">14.0</vertical>
-       <vertical location="bottom" units="db" positive="down">2656.0</vertical>
-     </station>
-     <station id="872" cast="0" bottom="3265.0" reference="128E-1968       _872.nc">
-       <date location="point" year="1968" month="8" day="29" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-50.588</latitude>
-       <longitude location="point" units="degrees_east">128.006</longitude>
-       <vertical location="top" units="db" positive="down">8.0</vertical>
-       <vertical location="bottom" units="db" positive="down">2769.0</vertical>
-     </station>
-     <station id="873" cast="0" bottom="3875.0" reference="128E-1968       _873.nc">
-       <date location="point" year="1968" month="8" day="30" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-48.973</latitude>
-       <longitude location="point" units="degrees_east">128.187</longitude>
-       <vertical location="top" units="db" positive="down">10.0</vertical>
-       <vertical location="bottom" units="db" positive="down">3768.0</vertical>
-     </station>
-     <station id="874" cast="0" bottom="3990.0" reference="128E-1968       _874.nc">
-       <date location="point" year="1968" month="8" day="31" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-47.623</latitude>
-       <longitude location="point" units="degrees_east">128.073</longitude>
-       <vertical location="top" units="db" positive="down">8.0</vertical>
-       <vertical location="bottom" units="db" positive="down">3774.0</vertical>
-     </station>
-     <station id="889" cast="0" bottom="4238.0" reference="128E-1968       _889.nc">
-       <date location="point" year="1968" month="10" day="1" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-47.505</latitude>
-       <longitude location="point" units="degrees_east">128.006</longitude>
-       <vertical location="top" units="db" positive="down">9.0</vertical>
-       <vertical location="bottom" units="db" positive="down">1361.0</vertical>
-     </station>
-     <station id="875" cast="0" bottom="5545.0" reference="128E-1968       _875.nc">
-       <date location="point" year="1968" month="9" day="2" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-45.15</latitude>
-       <longitude location="point" units="degrees_east">128.013</longitude>
-       <vertical location="top" units="db" positive="down">12.0</vertical>
-       <vertical location="bottom" units="db" positive="down">5683.0</vertical>
-     </station>
-     <station id="890" cast="0" bottom="4460.0" reference="128E-1968       _890.nc">
-       <date location="point" year="1968" month="10" day="3" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-43.336</latitude>
-       <longitude location="point" units="degrees_east">129.451</longitude>
-       <vertical location="top" units="db" positive="down">4.0</vertical>
-       <vertical location="bottom" units="db" positive="down">4499.0</vertical>
-     </station>
-     <station id="876" cast="0" bottom="4969.0" reference="128E-1968       _876.nc">
-       <date location="point" year="1968" month="9" day="3" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-42.01</latitude>
-       <longitude location="point" units="degrees_east">127.973</longitude>
-       <vertical location="top" units="db" positive="down">9.0</vertical>
-       <vertical location="bottom" units="db" positive="down">4923.0</vertical>
-     </station>
-     <station id="877" cast="0" bottom="5636.0" reference="128E-1968       _877.nc">
-       <date location="point" year="1968" month="9" day="6" hour="0" min="0" secs="0.0"/>
-       <latitude location="point" units="degrees_north">-38.166000000000004</latitude>
-       <longitude location="point" units="degrees_east">128.058</longitude>
-       <vertical location="top" units="db" positive="down">5.0</vertical>
-       <vertical location="bottom" units="db" positive="down">5658.0</vertical>
-     </station>
-   </fileset>
-   <attribute name="JOA Version" value="3.5"/>
-   <attribute name="creator" value="JOA"/>
-   <attribute name="missing_value" value="-99.0"/>
-   <attribute name="creation_date" value="Today"/>
-   <comment>A dummy comment for testing XML Writing</comment>
- </epicxml>